Code: Select all
MaxPresses := 2
~Space::
Presses += 1
SetTimer, ResetPresses, -600
If (Pressed <= MaxPresses)
GoSub, Presses%Presses%
return
ResetPresses:
Presses := 0
return
Presses1:
TrayTip, %A_ThisLabel%, You pressed Space 1 time
return
Presses2:
TrayTip, %A_ThisLabel%, You pressed Space 2 times
return
it works as normal but here's the problem
if I press "space" three or more times rapidly within 600ms, the error dialog pops up saying this
I can minimize this problem by adjusting the settimer value down to 200ms or something
but is there a way I can stop it from showing completely?