Skip to content

Instantly share code, notes, and snippets.

@benhovinga
Last active December 19, 2020 16:19
Show Gist options
  • Save benhovinga/8bd08d252957303d06e26b28b82b42a0 to your computer and use it in GitHub Desktop.
Save benhovinga/8bd08d252957303d06e26b28b82b42a0 to your computer and use it in GitHub Desktop.
AutoHotkey Script to automatically click.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Clicker
^K::
Loop {
if stopit = true
{
stopit = false
break
}
Click
Sleep 2000
}
return
; Stop any loops
^S::
stopit = true
return
; Quit the script
^Q::ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment