Advertisement
Guest User

jumpboy autohotkey

a guest
Aug 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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. #IfWinActive World of Warcraft
  7. #Persistent
  8.  
  9. SetTimer, Jumpforme, % ran(210000, 480000)
  10.  
  11. Jumpforme:
  12. IfWinActive World of Warcraft
  13. {
  14. Send, {Space down}
  15. Sleep, % ran(50, 100)
  16. Send, {Space up}
  17. }
  18.  
  19. ran(min, max)
  20. {
  21. random, ran, min, max
  22. return ran
  23. }
  24.  
  25. ^j::
  26. MsgBox, 4, , Has the <Hero> returned?
  27. IfMsgBox, Yes
  28. ExitApp
  29. return ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement