Malik_Gynax Officer
Posts : 6 Join date : 2010-12-20
| Subject: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Mon Dec 20, 2010 11:14 pm | |
| - Code:
-
; Auto Sprint ; For this to work, F11 must be your sprint button ; This macro sprints automatically so you don't have to hold shift. ; It also does not get interrupted by going into UI mode or typing.
; Pressing the middle mouse button toggles your auto sprinting on and off.
toggle = 0
~*MBUTTON:: WinGetClass, classVar,A if classvar = SFMainWindow { if toggle := !toggle Send, {F11 down} else Send, {F11 Up} } return
~RButton:: WinGetClass, classVar,A if classvar = SFMainWindow { If toggle = 1 { Keywait, `RButton` Send, {F11 down} } else toggle = 0 } return
~Enter:: If toggle = 1 { WinGetClass, classVar,A if classvar = SFMainWindow { Keywait, Enter Send, {F11 down} } else toggle = 0 } return
Last edited by Malik_Gynax on Fri Jan 28, 2011 1:10 am; edited 4 times in total | |
|
Malik_Gynax Officer
Posts : 6 Join date : 2010-12-20
| Subject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Mon Dec 20, 2010 11:14 pm | |
| - Code:
-
; Ray cycle! Set your rays to Numpad 1 2 3 4 5 6 ; Leave out pungent mist because that takes too much mana and should be used ; on its own out of the cycle
; Mousewheel down will cycle rays with this macro.
raytoggle = 0
~WheelDown:: WinGetClass, classVar,A if classvar = SFMainWindow { if raytoggle = 0 { Send, {Numpad1} } if raytoggle = 1 { Send, {Numpad2} } if raytoggle = 2 { Send, {Numpad3} } if raytoggle = 3 { Send, {Numpad4} } if raytoggle = 4 { Send, {Numpad5} } if raytoggle = 5 { Send, {Numpad6} }
raytoggle++ if raytoggle > 5 { raytoggle = 0 } } return
Last edited by Malik_Gynax on Fri Dec 24, 2010 1:44 pm; edited 3 times in total | |
|
Malik_Gynax Officer
Posts : 6 Join date : 2010-12-20
| Subject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Mon Dec 20, 2010 11:18 pm | |
| - Code:
-
; This is a sword and board macro. Just presses capslock and pulls out a sword and shield. ; Sword must be set to RCTRL Numpad 7 ; Board must be set to RCTRL Numpad 8.
*CapsLock:: WinGetClass, classVar,A if classvar = SFMainWindow { Send, {RCTRL down}{Numpad7}{RCTRL up} Sleep, 500 Send, {RCTRL down}{Numpad8}{RCTRL up} } else { GetKeyState, state, CapsLock, T ; D if CapsLock is ON or U otherwise. if state = D SetCapsLockState, off else SetCapsLockState, on } return
Last edited by Malik_Gynax on Mon Feb 28, 2011 11:29 pm; edited 2 times in total | |
|
Malik_Gynax Officer
Posts : 6 Join date : 2010-12-20
| Subject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Mon Dec 20, 2010 11:19 pm | |
| | |
|
Sponsored content
| Subject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) | |
| |
|