I made the switch from spamming my shot rotation with my G15 to AHK, and my pinky is quite grateful for no longer having to reach over to the G keys. However, there's one side effect that I can't figure out how to correct.
I'm using the standard script from the OP:
#ifWinActive World of Warcraft
{
$2::
Loop
{
if not GetKeyState("2", "P")
break
Send 2
sleep 1
}
return
}
I have my shot rotation bound to 2, and multi-shot bound to alt-2. My intention is to be able to hold down the appropriate script/macro key all day to spam 2, and be able to press Alt and have it spam alt-2 for the duration. This way I can queue a multishot by holding alt while the previous steady shot is casting, and release Alt when the multishot goes off to resume my normal rotation. It works perfectly with the G15 keys, but now that I have this AHK script set up it completely ignores Alt until I take my finger off the script; in other words, if I'm holding 2, thus spamming 2, and I press and hold Alt, it will simply continue to spam 2 (as opposed to alt-2). In order to actually get an alt-2 to go through I have to release 2 and press alt-2 in combination, then release them again and press and hold 2 to resume my normal macro spam.
EDIT: Nevermind, I figured it out. "Send {Blind}2" sends a "2" without trying to fix the modifiers to send "2" explicitly.