Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WinGet, WindID, ID, MortalGame
- SetKeyDelay, 200, 250
- MsgBox,,SETUP!,F3-START F4-PAUSE F5-RELOAD, 4
- Inputbox, castamount, SETUP, How many times would you like the macro to cast? (Hot Bar)
- Inputbox, button, SETUP, Which button is the spell you'd like to use bound to? (Hot Bar)
- InputBox, secondstocast, SETTINGS, Enter number seconds it takes to cast your spell. (Decimals allowed.)
- InputBox, secondstosleep, SETTINGS, Enter number seconds it takes to rest to full. (Decimals allowed.)
- MsgBox,,SETUP!,Enjoy the macro!, 4
- ,
- f3::
- ++Start1
- if Start1 < 2
- {
- MsgBox,,SETUP!,Sending Initial Cast., 1
- ControlSend,,%button%, ahk_id %WindID%
- Sleep % secondstocast*1000
- ControlSend , , e,ahk_id %WindID%
- Sleep, 200
- }
- Loop
- {
- Loop, % castamount
- {
- ControlSend , , e,ahk_id %WindID%
- Sleep % secondstocast*1000
- ControlSend , , e,ahk_id %WindID%
- Sleep, 200
- }
- ControlSend , ,0,ahk_id %WindID%
- Sleep % secondstosleep*1000
- }
- f4:: Pause
- Traytip, Macro Paused Press F4 to continue,
- f5:: Reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement