Code: Select all
LButton::
{
SetMouseDelay(-1)
Click(4)
Return
}
RButton::LButton
Also, can this code be improved even more?
Code: Select all
LButton::
{
SetMouseDelay(-1)
Click(4)
Return
}
RButton::LButton
Code: Select all
#Requires AutoHotkey v2.0
on := False
F12:: {
Global on ^= True
SoundBeep 1000 + 500 * on
}
#HotIf on
LButton::SetMouseDelay(-1), Click(4)
#HotIf
If SetMouseDelay is not used, the default delay is 10 for the traditional SendEvent mode and -1 for SendPlay mode.
Source: SetMouseDelay - Syntax & Usage | AutoHotkey v2