I found this ahk script for spamming a hotkey once held and stopped once released. Someone developed it for use in SWTR a decade ago. I have applied to an MMORPG. The keys are from 0-9. What do I add if I want to send multiple keys per loop instead of pressing and holding 1, 2, 3, etc. (bound to different mouse keys)? I tried a few things but it didn't work. Thanks for any help.
Code: Select all
*1::
Loop
{
GetKeyState, state, 1, p
if state = U
break
; Otherwise:
Send, 1
Sleep, 25
}
*2::
Loop
{
GetKeyState, state, 2, p
if state = U
break
; Otherwise:
Send, {2}
Sleep, 25