try:
Code: Select all
$a::
SetKeyDelay,1000
;SetKeyDelay,,1000
;SetKeyDelay,1000,1000
While, GetKeyState("a","P")
Send, a
;Sleep, 0
Return
71 hotkeys have been received in the last 0ms.
Do you want to continue?
(see #MaxHotkeysPerInterval in the help file)
with all three versions of SetKeyDelay!
Uncomment "Sleep, 0" to prevent the error message.