AHK script with Modifiers while World of Warcraft is active

AUTOHOT KEY

I dont use it, but when i used it, before i bought my self Corsair keyboard, or Razer keyboard, where it possible to use macros on buttons to set to “while pressed”. I always where looking for this…

Often in GSE macros, there is set modifiers on the keypress or sequence. Then its often more effecient to use modifiers on proc’s than release and press another button.

This is script for AHK that works with modifiers…
The “q” and “e” and speed 50 is what u need to change to ur own specs. q and e is my 2 spam buttons and speed is ms u wanna spam the buttons while u keep it pressed.

#ifWinActive World of Warcraft
{
$q::
$^q::
$+q::
$!q::
Loop
{
if not GetKeyState("q", "P")
break
if GetKeyState("LCtrl", "P")
Send ^q
else if GetKeyState("LShift", "P")
Send +q
else if GetKeyState("LAlt", "P")
Send !q
else
Send q
sleep 50
}
return
}
{
$e::
$^e::
$+e::
$!e::
Loop
{
if not GetKeyState("e", "P")
break
if GetKeyState("LCtrl", "P")
Send ^e
else if GetKeyState("LShift", "P")
Send +e
else if GetKeyState("LAlt", "P")
Send !e
else
Send e
sleep 50
}
return
}    

Just change the Q’s or E’s that i use, to what ever u wanna use…