Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- $F1::
- Loop
- {
- if not GetKeyState("F1", "P") ; If this statement is true, the user has physically released the F1 key.
- break ; Break out of the loop.
- ; Otherwise (since the above didn't "break"), keep clicking the mouse.
- click
- Sleep 3 ; Wait 30 seconds.
- }
- return
- Esc::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement