I have this, when i press a key one, two times or longer it does different actions.
How could i write this the "." "," "-" keys?
Thank you!
Code: Select all
;A (A)
A::
KeyWait, A , T0.1
if (ErrorLevel)
gosub GoSub_10_A3 ;Long
else {
KeyWait, A, D T0.1
if (ErrorLevel) ; 1x
gosub GoSub_10_A1
else
gosub GoSub_10_A2 ; 2x
}
KeyWait, A
return
GoSub_10_A1:
SoundBeep
return
GoSub_10_A2:
SoundBeep
return
GoSub_10_A3:
SoundBeep
return
;E (A)