Code: Select all
#Requires AutoHotkey v2.0
AutoClickEnabled := False
F1:: {
Global AutoClickEnabled := !AutoClickEnabled
SoundBeep 380 + 320 * AutoClickEnabled
}
#HotIf AutoClickEnabled
~*LButton::
{
if !KeyWait("LButton", "T.2")
Clicker()
KeyWait("LButton")
SetTimer(Clicker, 0)
Clicker() {
SendEvent("{Click}")
SetTimer(Clicker, -10)
}
}
#HotIf
+Esc::ExitApp
[Mod action: Moved topic to the “Gaming” section.]