Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ;Lines starting with a ; are comments and are not part of the actual script.
  2.  
  3. #NoEnv
  4. SendMode Input
  5. SetWorkingDir, % A_ScriptDir
  6. #SingleInstance, Force
  7.  
  8. ; The key that activates the script. For a list of supported keys and combinations, see https://autohotkey.com/docs/Hotkeys.htm
  9. ; For a complete list of special keys (like mouse button 5) see: https://autohotkey.com/docs/KeyList.htm
  10. F8::
  11. toggle:=1
  12. while (toggle)
  13. {
  14. ; Initialize a random delay between 40 and 97 ms (values may be changed to your liking)
  15. random, delay, 40, 97
  16. sleep, delay
  17. send, {Space down}
  18. sleep, 20
  19. send, {Space up}
  20. }
  21. Return
  22.  
  23. ; The key that stops the script
  24. F9:: toggle:=!toggle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement