Problem is that with the contained code, if you press the key, then release and re-press it during the sleep, it acts as if that is a continual press, instead of two distinct events. I tried it with "KeyWait, space, T.5" in place of the sleep line, but it seemed like sometimes that would get "stuck" and make the timer continue to run after releasing the spacebar.
Any assistance would be great, I feel like there is a really obvious thing I am missing, but have had no luck finding it.
Code: Select all
~space::
sleep, 500
SetTimer, SpaceHeld, 30
KeyWait, space
SetTimer, SpaceHeld, Off
return
SpaceHeld:
Send {space}
return