Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Lines starting with a ; are comments and are not part of the actual script.
- #NoEnv
- SendMode Input
- SetWorkingDir, % A_ScriptDir
- #SingleInstance, Force
- ; The key that activates the script. For a list of supported keys and combinations, see https://autohotkey.com/docs/Hotkeys.htm
- ; For a complete list of special keys (like mouse button 5) see: https://autohotkey.com/docs/KeyList.htm
- F8::
- toggle:=1
- while (toggle)
- {
- ; Initialize a random delay between 40 and 97 ms (values may be changed to your liking)
- random, delay, 40, 97
- sleep, delay
- send, {Space down}
- sleep, 20
- send, {Space up}
- }
- Return
- ; The key that stops the script
- F9:: toggle:=!toggle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement