Code: Select all
~]::
SetTimer RBracket,% (RBracket:=!RBracket)?12500:"Off"
~]::
press MButton and wait 12.5 seconds
if ] is pressed again at anytime between the 12.5 second of wait, then press MButton and reset timer (so that the next ~]:: will press MButton and wait 12.5 seconds), However, if ] is not pressed, then wait the whole 12.5 seconds
The code that almost does the job is this:
Code: Select all
~]::
SetTimer RBracket,% (RBracket:=!RBracket)?12500:"Off"
IF !RBracket
return
RBracket:
sendinput, {MButton down}
sleep, 50
sendinput, {MButton up}
return