Hello, I'm using the below script that I got from wowlazymacros.com a few years ago. The script currently auto-presses F1, F2, or F3 every 150ms and has an “F# ENABLED” overlay text. Pressing one of the three keys a second time turns the script off. Additionally pressing one of the keys while any other is active will also turn the previous one off (keeping only one running at a time).
When I try to use a modifier key (i.e. Shift, Alt, Ctrl) while the script is running, the command doesn't get sent to the game. Basically what I'm looking for is if I hold Shift down while F1 is enabled the script auto-presses Shift-F1 instead of F1, and when I release the Shift key the script goes back to auto-pressing F1. I'd like it to do this for Shift, Alt, and Ctrl on all three keys (i.e. F1, F2, and F3).
Can anyone help?
------------------------
WinGet, wowid, List, World of Warcraft
#ifWinActive World of Warcraft
; to force the hotkey only to WoW
toggleST := false
toggleAOE := false
toggleHealdmg := false
CustomColor = 000000 ; Can be any RGB color (it will be made transparent below).
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s14 q3 ; q3 to non-antialias the text, only works in AHK_L
Gui, Add, Text, vMyText cLime w200 +Center
Gui, Add, Text, vMyText2 cLime w300
Gui, Add, Text, vMyText3 cLime w300
WinSet, TransColor, %CustomColor% 150
sw := A_ScreenWidth/100
sh := A_ScreenHeight/100
Gui, Show, % "x" . sw*44 . " y" sh*2, NoActivate ; NoActivate avoids deactivating the currently active window.
return
$F1::
if(toggle1) {
toggle1 := false
SetTimer, Send1, Off
GuiControl,, MyText,
} else {
toggle1 := true
toggle2 := false
toggle3 := false
SetTimer, Send2, Off
SetTimer, Send3, Off
GuiControl,, MyText2,
GuiControl,, MyText3,
; Choose a delay here!
SetTimer, Send1, 150
GuiControl,, MyText, F1 ENABLED
}
return
$F2::
if(toggle2) {
toggle2 := false
SetTimer, Send2, Off
GuiControl,, MyText2,
} else {
toggle2 := true
toggle1 := false
toggle3 := false
SetTimer, Send1, Off
SetTimer, Send3, Off
GuiControl,, MyText,
GuiControl,, MyText3,
; Choose a delay here!
SetTimer, Send2, 150
GuiControl,, MyText2, F2 ENABLED
}
return
$F3::
if(toggle3) {
toggle3 := false
SetTimer, Send3, Off
GuiControl,, MyText3,
} else {
toggle3 := true
toggle1 := false
toggle2 := false
SetTimer, Send1, Off
SetTimer, Send2, Off
GuiControl,, MyText,
GuiControl,, MyText2,
; Choose a delay here!
SetTimer, Send3, 150
GuiControl,, MyText3, F3 ENABLED
}
return
Send1:
ifWinActive, World of Warcraft
Send {F1}
return
Send2:
ifWinActive, World of Warcraft
Send {F2}
return
Send3:
ifWinActive, World of Warcraft
Send {F3}
return
#ifWinActive
; to end the WoW key binding
Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Old post I know. Using the same script. Any joy on getting the mods to work? Or does anyone on the forum have any advice?
Re: Mod Keys (i.e. Shift, Alt, Ctrl) for Wow when using AHK
Oops, submit fail there, apologies for repeats!
Who is online
Users browsing this forum: No registered users and 37 guests