Advertisement
Guest User

Code Test

a guest
Jun 23rd, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6.  
  7. Space::
  8. Var := !Var
  9. If Var
  10. {
  11. SoundBeep, 1000, 100
  12. SetTimer, Spam, % (i:=!i) ? "0"
  13. }
  14. else
  15. {
  16. SoundBeep, 1000, 100
  17. Sleep 50
  18. SoundBeep, 1000, 100
  19. SetTimer, Spam, Off
  20.  
  21. }
  22. return
  23.  
  24. Spam:
  25. Send {1}
  26. Sleep 9700
  27. Send {2}
  28. Sleep 11500
  29. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement