Code: Select all
LButton::
If ( A_TimeSincePriorHotkey > 20 )
Send, {Lbutton Down}
return
Lbutton Up::Send, {Lbutton Up}
MButton::
If ( A_TimeSincePriorHotkey > 20 )
Send, {MButton Down}
return
Mbutton Up::Send, {MButton Up}
RButton::
If ( A_TimeSincePriorHotkey > 20 )
Send, {Rbutton Down}
return
Rbutton Up::Send, {Rbutton Up}
Code: Select all
LButton::
RButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 3000)
return
Send {%A_ThisHotkey% down}
KeyWait %A_ThisHotkey%
Send {%A_ThisHotkey% up}
Return
Code: Select all
~Lbutton::
;400 is the maximum allowed delay (in milliseconds) between presses.
if (A_PriorHotKey = "~Lbutton" AND A_TimeSincePriorHotkey < 10000)
Return
Sleep 10000
KeyWait, Lbutton
return