Advertisement
Guest User

Untitled

a guest
May 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. WinGet, WindID, ID, MortalGame
  2. SetKeyDelay, 200, 250
  3.  
  4. MsgBox,,SETUP!,F3-START F4-PAUSE F5-RELOAD, 4
  5. Inputbox, castamount, SETUP, How many times would you like the macro to cast? (Hot Bar)
  6. Inputbox, button, SETUP, Which button is the spell you'd like to use bound to? (Hot Bar)
  7. InputBox, secondstocast, SETTINGS, Enter number seconds it takes to cast your spell. (Decimals allowed.)
  8. InputBox, secondstosleep, SETTINGS, Enter number seconds it takes to rest to full. (Decimals allowed.)
  9. MsgBox,,SETUP!,Enjoy the macro!, 4
  10. ,
  11. f3::
  12. ++Start1
  13. if Start1 < 2
  14. {
  15. MsgBox,,SETUP!,Sending Initial Cast., 1
  16. ControlSend,,%button%, ahk_id %WindID%
  17. Sleep % secondstocast*1000
  18. ControlSend , , e,ahk_id %WindID%
  19. Sleep, 200
  20. }
  21. Loop
  22. {
  23. Loop, % castamount
  24. {
  25. ControlSend , , e,ahk_id %WindID%
  26. Sleep % secondstocast*1000
  27. ControlSend , , e,ahk_id %WindID%
  28. Sleep, 200
  29. }
  30. ControlSend , ,0,ahk_id %WindID%
  31. Sleep % secondstosleep*1000
  32. }
  33. f4:: Pause
  34. Traytip, Macro Paused Press F4 to continue,
  35. f5:: Reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement