Part Three
Code:
<Hotkey NumLockOn Alt Ctrl Shift T>
<If HotkeysAreOn>
<TurnHotkeysOff>
<EndIf>
<Hotkey Alt Ctrl X>
<DisplayVars>
<If MouseIsOverWindow WoW5>
// make WoW5 the main window
<DoHotkey Hotkey Alt Ctrl Shift F9>
<Else If MouseIsOverWindow WoW4>
// make WoW4 the main window
<DoHotkey Hotkey Alt Ctrl Shift F10>
<Else>
//make WoW3, WoW2 or WoW1 the main window
<DoHotkey Hotkey Alt Ctrl Shift F5>
<EndIf>
<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
<Label w3 Local SendWinM WoW3>
<Label w4 Local SendWinM WoW4>
<Label w5 Local SendWinM WoW5>
<Hotkey 0-9, Minus>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
<Hotkey Alt Ctrl L>
<SetTaskbarAutoHide On>
<LaunchAndRename Local WoW5>
<LaunchAndRename Local WoW4>
<LaunchAndRename Local WoW3>
<LaunchAndRename Local WoW2>
<LaunchAndRename Local WoW1>
<DefaultWindowLayout>
<Hotkey pause>
<sendpc local>
<If HotkeysAreOff>
<TurnHotkeysOn>
<SetButtonColors ON 0x00FF00 0x0F0F0F>
<SetButtonText ON HKN>
<Else>
<TurnHotkeysOff>
<SetButtonColors ON 0xfF0000 0xffFFff >
<SetButtonText ON off>
<EndIf>
<Hotkey Alt Ctrl A>
<Toggle>
<sendpc local>
<SetButtonColors ACT 0x00FF00 0x0F0F0F>
<SetButtonText ACT AWT>
<SetActiveWindowTrackingDelay 0>
<SetActiveWindowTracking On>
<Toggle>
<sendpc local>
<SetButtonColors ACT 0xfF0000 0xffFFff >
<SetButtonText ACT off>
<SetActiveWindowTracking Off>
<Hotkey Alt Ctrl D>
<SetVar Win1 WoW5>
<SetVar Win2 WoW4>
<SetVar Win3 WoW3>
<SetVar Win4 WoW2>
<SetVar Win5 WoW1>
<DefaultWindowLayout>
You may notice that it's rather long and convoluted, this is because of a limitation in HotKeyNet that prevents nesting of If statements within each other or user defined commands.
Connect With Us