The Empire
The Empire
The Empire
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Empire


 
HomeLatest imagesSearchRegisterLog in
~~~http://www.empire-uw.com NEW OFFICIAL WEBSITE http://www.empire-uw.com~~~
~~~http://www.empire-uw.com NEW OFFICIAL WEBSITE http://www.empire-uw.com~~~

 

 Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)

Go down 
AuthorMessage
Malik_Gynax
Officer
Officer



Posts : 6
Join date : 2010-12-20

Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Empty
PostSubject: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)   Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) I_icon_minitimeMon 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
Back to top Go down
Malik_Gynax
Officer
Officer



Posts : 6
Join date : 2010-12-20

Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Empty
PostSubject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)   Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) I_icon_minitimeMon 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
Back to top Go down
Malik_Gynax
Officer
Officer



Posts : 6
Join date : 2010-12-20

Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Empty
PostSubject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)   Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) I_icon_minitimeMon 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
Back to top Go down
Malik_Gynax
Officer
Officer



Posts : 6
Join date : 2010-12-20

Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Empty
PostSubject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)   Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) I_icon_minitimeMon Dec 20, 2010 11:19 pm

reserve
Back to top Go down
Sponsored content





Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) Empty
PostSubject: Re: Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)   Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board) I_icon_minitime

Back to top Go down
 
Malik's AutoHotkey Macros! (Autosprint/Ray Cycle/Sword+Board)
Back to top 
Page 1 of 1
 Similar topics
-
» Skin/Loot Macro for AutoHotKey

Permissions in this forum:You cannot reply to topics in this forum
The Empire :: Empire Members :: Guides-
Jump to: