Advertisement
Guest User

Untitled

a guest
May 24th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #InstallMouseHook
  2. #InstallKeybdHook
  3. #NoEnv
  4. SendMode Input
  5. #SingleInstance, Force
  6.  
  7. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  8. ;
  9.  
  10. #IfWinActive, Grim Dawn
  11.  
  12. Process, WaitClose, grim dawn.exe
  13. ExitApp
  14. global Toggle := false
  15. return
  16.  
  17.  
  18. UseSkill(key)
  19. {
  20.  
  21. Send {%key%}
  22.  
  23. }
  24.  
  25.  
  26.  
  27. Numpad8::
  28.  
  29. Send Y
  30. Gosub Skill1
  31. sleep 200
  32. Gosub Skill2
  33. sleep 200
  34. Gosub Skill3
  35. Send Y
  36.  
  37. ToggleLoop(true)
  38. return
  39.  
  40. Wheelup::
  41. Gosub WordOfRenewal
  42. SetTimer, WordOfRenewal, 30000
  43. return
  44.  
  45. ToggleLoop(reset)
  46. {
  47. Toggle := !Toggle || reset
  48.  
  49. if(Toggle)
  50. {
  51. Gosub WordOfRenewal
  52. }
  53.  
  54. ; enable or disable timers for all skills you want to loop
  55. SetTimer, WordOfRenewal, % (Toggle) ? 30000 : "Off"
  56. }
  57.  
  58. Skill1:
  59. UseSkill(1)
  60. return
  61.  
  62. Skill2:
  63. UseSkill(2)
  64. return
  65.  
  66. Skill3:
  67. UseSkill(3)
  68. return
  69.  
  70. WordOfRenewal:
  71. UseSkill(9)
  72. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement