Auto Clicker - auto-clicks when the left mouse button is held down. . #ahk #script #snippet
# Source: http://slanter-ahk.blogspot.de/2008/08/simple-auto-clicker.html
# Simply auto-clicks when the left mouse button is held down. Insert toggles the auto-clicker on and off
Insert::
Hotkey, LButton, Toggle
Hotkey, LButton Up, Toggle
Return
LButton::
Loop
{
If (Stop)
Break
Send {lbutton}
}
Stop := 0
Return
LButton Up::Stop := 1
# Source http://slanter-ahk.blogspot.de/2009/02/ahk-new-auto-clicker.html
# This is a new 5-line autoclicker made possible with the release of AHK 1.0.48. Use Insert to toggle it on and off.
LButton::
While GetKeyState("LButton","P")
Send {LButton}
Return
Insert::Hotkey, LButton, Toggle