Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------------------------------------------------------------------------------
- // ---------- SCRIPT INITIALIZATION ----------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // 1 - [ScrollLockON Alt Ctrl Shift H] - initialize HKN window
- // 2 - [ScrollLockON Alt Ctrl Shift A] - initialize AWT window
- // 3 - [ScrollLockOn Alt Ctrl Shift S] - initialize AutoShoot window
- // 4 - [ScrollLockOn Alt Ctrl Shift M] - initialize MeleCombat window
- //
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <Command AutoExec>
- <SetVar varMainChar "Talndaar">
- <SetVar varAutoShootOn False>
- <SetVar varMeleCombatOn False>
- <DisplayVars>
- <DoHotKey HotKey ScrollLockON Alt Ctrl Shift H>
- <DoHotKey HotKey ScrollLockON Alt Ctrl Shift A>
- <DoHotKey HotKey ScrollLockOn Alt Ctrl Shift S>
- <DoHotKey HotKey ScrollLockOn Alt Ctrl Shift M>
- <SetActiveWindowTracking Off>
- //--------------------------------------------------------------------------------------------------------
- // ---------- INITIALIZE HKN BTN -------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------- Alt Ctrl Shift H
- //--------------------------------------------------------------------------------------------------------
- <HotKey ScrollLockOn Alt Ctrl Shift H>
- <If WinDoesNotExist HKN>
- <CreatePanel HKN 1850 0 70 70>
- <TargetWin HKN>
- <SetPanelDrag on>
- <CreateColoredButton ON 0 0 70 70 0x00FF00 0x0F0F0F ???>
- <AddButtonToPanel ON HKN>
- <SetButtonText ON HKN>
- <TargetWin HKN>
- <AlwaysOnTop on>
- <RemoveWinFrame>
- <UpdateWin>
- <EndIf>
- <SetButtonColors ON 0x00FF00 0x0F0F0F >
- <SetButtonText ON HKN>
- //--------------------------------------------------------------------------------------------------------
- // ---------- INITIALIZE AWT BTN -------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------- Alt Ctrl Shift A
- //--------------------------------------------------------------------------------------------------------
- <HotKey ScrollLockOn Alt Ctrl Shift A>
- <If WinDoesNotExist AWT>
- <CreatePanel AWT 1920 0 70 70>
- <TargetWin AWT>
- <CreateColoredButton ACT 0 0 70 70 0x0000FF 0xFFFFFF ???>
- <AddButtonToPanel ACT AWT>
- <SetButtonText ACT AWT>
- <TargetWin AWT>
- <AlwaysOnTop on>
- <RemoveWinFrame>
- <UpdateWin>
- <endif>
- <SetButtonColors ACT 0xfF0000 0xffFFff >
- <SetButtonText ACT AWT>
- //--------------------------------------------------------------------------------------------------------
- // ---------- INITIALIZE AutoShoot BTN -------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------- Alt Ctrl Shift S
- //--------------------------------------------------------------------------------------------------------
- <HotKey ScrollLockOn Alt Ctrl Shift S> // creates autoshoot btn
- <If WinDoesNotExist winAutoShoot>
- <CreatePanel panAutoShoot 1780 0 70 70>
- <TargetWin panAutoShoot>
- <SetPanelDrag on>
- <CreateColoredButton btnAutoShoot 0 0 70 70 0x00FF00 0x0F0F0F ???>
- <AddButtonToPanel btnAutoShoot panAutoShoot>
- <SetButtonText btnAutoShoot AutoShoot>
- <TargetWin panAutoShoot>
- <AlwaysOnTop on>
- <RemoveWinFrame>
- <UpdateWin>
- <EndIf>
- //--------------------------------------------------------------------------------------------------------
- // ---------- INITIALIZE MeleCombat BTN ------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <HotKey ScrollLockOn Alt Ctrl Shift M>
- <If WinDoesNotExist winMeleCombat>
- <CreatePanel panMeleCombat 1700 0 70 70>
- <TargetWin panMeleCombat>
- <SetPanelDrag on>
- <CreateColoredButton btnMeleCombat 0 0 70 70 0x00FF00 0x0F0F0F ???>
- <AddButtonToPanel btnMeleCombat panMeleCombat>
- <SetButtonText btnMeleCombat MeleCombat>
- <TargetWin panMeleCombat>
- <AlwaysOnTop on>
- <RemoveWinFrame>
- <UpdateWin>
- <EndIf>
- //--------------------------------------------------------------------------------------------------------
- // ---------- varAutoShootON ON - OFF --------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <Template SetvarAutoShootOn>
- <SetVar varAutoShootOn True>
- <SetButtonColors btnAutoShoot 0xfF0000 0xffFFff>
- <EndTemplate>
- <Template SetVarAutoShootOff>
- <SetVar varAutoShootOn False>
- <SetButtonColors btnAutoShoot 0x00FF00 0x0F0F0F>
- <EndTemplate>
- //--------------------------------------------------------------------------------------------------------
- // ---------- varMeleCombatOn ON - OFF -------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // --------------------------------------------------------------------------------------------- Button4 Q
- //--------------------------------------------------------------------------------------------------------
- <Template SetVarMeleCombatOn>
- <SetVar varMeleCombatOn True>
- <SetButtonColors btnMeleCombat 0x00FF00 0x0F0F0F>
- <EndTemplate>
- <Template SetVarMeleCombatOff>
- <SetVar varMeleCombatOn False>
- <SetButtonColors btnMeleCombat 0xfF0000 0xffFFff>
- <EndTemplate>
- //---------------------------------------------------------------------------------------------------- ALL
- // ---------- ASSIST - AutoShoot ON 2 --------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // if varMeleCombatOn is True it will sent "Ctrl Shift 2" to use mele macro
- // if varMeleCombatOn is False it will sent "2" to use range macro
- //
- // -------------------------------------------------------------------------------------------------------
- //------------------------------------------------------------------------------------------------------ 2
- <HotKey ScrollLockOn 2>
- <DoHotkey HotKey ScrollLockOn Comma> // assist
- <DoHotkey HotKey ScrollLockOn Button4 1>
- <SendLabel w0,w1,w2,w3,w4>
- <DisplayVars>
- <If varMeleCombatOn is True>
- <Key Ctrl Shift 2>
- <Else>
- <Key 2>
- <EndIf>
- <HotKey ScrollLockOn Button4 1>
- <If varAutoShootOn is False>
- <ApplyTemplate SetVarAutoShootOn>
- <SendLabel w0,w1,w2,w3,w4>
- <Key Ctrl F8>
- <Key Ctrl Shift 1> // AutoShoot
- <EndIf>
- //--------------------------------------------------------------------------------------------------------
- // ---------- HotKey's for all follow actiwe window on Q and all stops on E ------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <Hotkey ScrollLockOn Q>
- <DoHotKey HotKey ScrollLockOn Period>
- <SendLabel w0, w1, w2, w3, w4>
- <Key Q>
- <DisplayVars>
- <ApplyTemplate SetVarAutoShootOff>
- <MovementHotkey ScrollLockOn E>
- <If MouseIsOverWindow WoW0>
- <SendLabel w1, w2, w3, w4>
- <Key Down>
- <Else If MouseIsOverWindow WoW1>
- <SendLabel w0, w2, w3, w4>
- <Key Down>
- <Else If MouseIsOverWindow WoW2>
- <SendLabel w0, w1, w3, w4>
- <Key Down>
- <Else If MouseIsOverWindow WoW3>
- <SendLabel w0, w1, w2, w4>
- <Key Down>
- <Else If MouseIsOverWindow WoW4>
- <SendLabel w0, w1, w2, w3>
- <Key Down>
- <EndIf>
- //---------------------------------------------------------------------------------------------------- ALL
- // ---------- ASSIST TESTING -----------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // %1% - Main window name.
- // w%2%, w%3%, w%4%, w%5% - Slave windows names.
- // %6% - Key to be sent.
- //--------------------------------------------------------------------------------------------------------
- <Template AssistMainWindow>
- <If MouseIsOverWindow %1%>
- <SendPC Local>
- <SendLabel w%2%, w%3%, w%4%, w%5%>
- <Key Ctrl F%6%>
- <EndIf>
- <EndTemplate>
- <HotKey ScrollLockOn Comma>
- <ApplyTemplate AssistMainWindow WoW0 1 2 3 4 8>
- <ApplyTemplate AssistMainWindow WoW1 2 3 4 0 9>
- <ApplyTemplate AssistMainWindow WoW2 3 4 0 1 10>
- <ApplyTemplate AssistMainWindow WoW3 4 0 1 2 11>
- <ApplyTemplate AssistMainWindow WoW4 0 1 2 3 12>
- //---------------------------------------------------------------------------------------------------- ALL
- // ---------- FOLLOW TESTING -----------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- //
- // ------------------------------------------------------------------------------------------------ Period
- //--------------------------------------------------------------------------------------------------------
- <Template FollowActiveWindow>
- <If MouseIsOverWindow %1%>
- <SendLabel w%2%, w%3%, w%4%, w%5%>
- <Key Shift F%6%>
- <EndIf>
- <EndTemplate>
- <HotKey ScrollLockOn Period>
- <ApplyTemplate FollowActiveWindow WoW0 1 2 3 4 8>
- <ApplyTemplate FollowActiveWindow WoW1 0 2 3 4 9>
- <ApplyTemplate FollowActiveWindow WoW2 0 1 3 4 10>
- <ApplyTemplate FollowActiveWindow WoW3 0 1 2 4 11>
- <ApplyTemplate FollowActiveWindow WoW4 0 1 2 3 12>
- //---------------------------------------------------------------------------------------------------- ALL
- // ---------- MAKE A LINE TESTING ------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // %1% - Main window name.
- // w%2% w%4% w%6% w%8% - Slave windows names.
- // F%3% F%5% F%7% F%9% - Keys to be sent.
- //
- // --------------------------------------------------------------------------------------------------- F12
- //--------------------------------------------------------------------------------------------------------
- <Template MakeALine>
- <if MouseIsOverWindow %1%>
- <SendLabel w%2%>
- <Key shift F%3%> // Follow 1
- <SendLabel w%4%>
- <Key shift F%5%> // Follow 2
- <SendLabel w%6%>
- <Key shift F%7%> // Follow 3
- <SendLabel w%8%>
- <Key shift F%9%> // Follow 4
- <endif>
- <EndTemplate>
- <HotKey ScrollLockOn F12>
- <ApplyTemplate MakeALine WoW0 1 8 2 9 3 10 4 11> //1<2<3<4<5
- <ApplyTemplate MakeALine WoW1 2 9 3 10 4 11 0 12> //2<3<4<5<1
- <ApplyTemplate MakeALine WoW2 3 10 4 11 0 12 1 8> //3<4<5<1<2
- <ApplyTemplate MakeALine WoW3 4 11 0 12 1 8 2 9> //4<5<1<2<3
- <ApplyTemplate MakeALine WoW4 0 12 1 8 2 9 3 10> //5<1<2<3<4
- //--------------------------------------------------------------------------------------------------------
- // ---------- Template - windows switching ---------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // TESTING
- //
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <Template SwitchWindows>
- <Hotkey ScrollLockON %1%>
- <SaveMousePos>
- <ResizeAndPosition %2% %3% %4% %5% %6%>
- <TargetWin WoW%2%>
- <SetActiveWin>
- //<DoHotkey Hotkey ScrollLockON Period>
- <SendLabel w0, w1, w2, w3, w4>
- <Key End>
- <Key End>
- <RestoreMousePos>
- <SetVar varMainChar %7%>
- <EndTemplate>
- //--------------------------------------------------------------------------------------------------------
- // ---------- WINDOWS SWITCHING --------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- // Switching windows and setting varMainChar to given char name.
- // -------------------------------------------------------------------------------------------------------
- //--------------------------------------------------------------------------------------------------------
- <ApplyTemplate SwitchWindows NumpadEnd 0 1 2 3 4 "Talndaar">
- <ApplyTemplate SwitchWindows NumpadDown 1 0 2 3 4 "Enthaan">
- <ApplyTemplate SwitchWindows NumpadPgDn 2 1 0 3 4 "Dalhalan">
- <ApplyTemplate SwitchWindows NumpadLeft 3 1 2 0 4 "Endrannul">
- <ApplyTemplate SwitchWindows Clear 4 1 2 3 0 "Mythalleath">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement