Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #InstallMouseHook
- #InstallKeybdHook
- #NoEnv
- SendMode Input
- #SingleInstance, Force
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ;
- #IfWinActive, Grim Dawn
- Process, WaitClose, grim dawn.exe
- ExitApp
- global Toggle := false
- return
- UseSkill(key)
- {
- Send {%key%}
- }
- Numpad8::
- Send Y
- Gosub Skill1
- sleep 200
- Gosub Skill2
- sleep 200
- Gosub Skill3
- Send Y
- ToggleLoop(true)
- return
- Wheelup::
- Gosub WordOfRenewal
- SetTimer, WordOfRenewal, 30000
- return
- ToggleLoop(reset)
- {
- Toggle := !Toggle || reset
- if(Toggle)
- {
- Gosub WordOfRenewal
- }
- ; enable or disable timers for all skills you want to loop
- SetTimer, WordOfRenewal, % (Toggle) ? 30000 : "Off"
- }
- Skill1:
- UseSkill(1)
- return
- Skill2:
- UseSkill(2)
- return
- Skill3:
- UseSkill(3)
- return
- WordOfRenewal:
- UseSkill(9)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement