Skip to content

Instantly share code, notes, and snippets.

@woctezuma
Created January 2, 2024 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woctezuma/98623bddd37d319b644b30fcadcce3fc to your computer and use it in GitHub Desktop.
Save woctezuma/98623bddd37d319b644b30fcadcce3fc to your computer and use it in GitHub Desktop.
AutoHotkey: automatically left-click several times
#Requires AutoHotkey v2.0
^a:: ; Press <Ctrl+A> to start the script.
{
Loop 10 ; Loop 10 times.
{
MouseClick "left" ; Left-click
Sleep 100 ; Sleep
if GetKeyState("z", "P") ; Press <Z> to stop the script.
break
}
}
@woctezuma
Copy link
Author

woctezuma commented Jan 2, 2024

Useful references:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment