A sample HotKeyNet starter script for 5 boxes
- furyswipes
- Nov 24, 2017
- 4 min read
You may save everything below this line as a file and load it in HKN:
---------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------// Arguments:// LaunchAndRename %1<Which PC(always "Local" for us)> %2<Window Name> %3<Account> %4<Password> %5<Winsizex> %6<Winsizey> %7<Winposx> %8<Winposy>
<Command LaunchAndRename>
<SendPC %1%>
<Run "C:\World of Warcraft 1.12\WoW.exe">
<RenameTargetWin %2%>
<WaitForWin %2% 40000>
<WaitForInputIdle 40000>
<Text %3%>
<Key Tab>
<Text %4%>
<TargetWin %2%>
//<RemoveWinFrame>
<SetWinSize %5% %6%>
<SetWinPos %7% %8%>
<Command LaunchHiresAndRename>
<SendPC %1%>
<Run "C:\wow_hires_1.12\WoW.exe">
<RenameTargetWin %2%>
<WaitForWin %2% 40000>
<WaitForInputIdle 40000>
<Text %3%>
<Key Tab>
<WaitForInputIdle 40000>
<Wait 500>
<Text %4%>
<Key Enter>
<Wait 500>
<Key Enter>
<Text %4%>
<Key Enter>
<TargetWin %2%>
<SetWinSize %5% %6%>
<SetWinPos %7% %8%>
// ResetWindowPosition %1<Which PC(always "Local" for us)> %2<Window Name> %3<Account> %4<Password> %5<Winsizex> %6<Winsizey> %7<Winposx> %8<Winposy>
<Command ResetWindowPosition>
<SendPC %1%>
<TargetWin %2%>
<SetForegroundWin>
<SetWinSize %5% %6%>
<SetWinPos %7% %8%>
// There are two parts to getting windows to pop in HKN. The first part is naming the windows shortcut:
<Label w1 Local SendWinM shamantres_vs2> <Label w2 Local SendWinM toshredsusay_er2> <Label w3 Local SendWinM shamanuno_vs1> <Label w4 Local SendWinM pocklick_er3> <Label w5 Local SendWinM shamanquatro_vs3>
// Notice the window name must correspond to the shortcut (w4 is the shortcut, pocklick_er3 is the window name)
// Then, you create the windows:
<Hotkey ScrollLockOn Alt Ctrl M> <LaunchAndRename Local shamantres_vs2 <account1> <account1password> 640 480 2560 0> <LaunchAndRename Local toshredsusay_er2 <account2> <account2password> 640 480 3200 480> <LaunchAndRename Local shamanuno_vs1 <account3> <account3password> 640 480 3200 960> <LaunchAndRename Local pocklick_er3 <account4> <account4password> 640 480 3200 1440> <LaunchAndRename Local shamanquatro_vs3 <account5> <account5password> 640 480 2560 480>
// Make sure your account names and passwords are right. Make sure your window names match the shortcuts above.
// Later in the file, those shortcuts are (IMPORTANT!) used to direct keys to the windows:
//Closes all windows <Hotkey ScrollLockOn Alt Ctrl O> <SendLabel w1,w2,w3,w4,w5> <ClickMouse Window LButton 376 449> <CloseWin>
// Clones the following keys in all windows! <Hotkey ScrollLockOn A-Z, 1-9, Shift, Ctrl, Alt, Plus, Minus, Esc , Space, Tab, Divide, F1-F12 except H, W, A, S, D, Q, E, R, T, Y, I, U> <SendLabel w1,w2,w3,w4,w5> <Key %Trigger%>
//----------------------------------------------------------- // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S. // ADD MORE KEYS IF YOU WANT. //----------------------------------------------------------- <MovementHotkey ScrollLockOn up, down, left, right> <SendLabel w1,w2,w3,w4,w5> <Key %Trigger%>
//----------------------------------------------------------- // BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS, // THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU // WANT TO BROADCAST. //----------------------------------------------------------- <UseKeyAsModifier Oem3>
<Hotkey ScrollLockOn Oem3 LButton, RButton, Button4, Button5> <SendLabel w1,w2,w3,w4,w5> <ClickMouse %TriggerMainKey%>
//Finally, all complex key combos must be PRE-DEFINED if you want them to work in wow! For example, Alt-1 won't automatically work. You have to define it.
//Also, I do tricks. When you hit alt-1/alt-4, for example, I not only send that to all windows--in addition, the FOCUS-WINDOW gets F10 // (which contains a macro that tells all other wow toons to "follow me and focus me"
<Hotkey ScrollLockOn Alt 1> <SendFocusWin> <Key f10> <SendLabel w1,w2,w3,w4,w5> <Key Alt 1> <Hotkey ScrollLockOn Alt 2> <SendLabel w1,w2,w3,w4,w5> <Key Alt 2> <Hotkey ScrollLockOn Alt 3> <SendLabel w1,w2,w3,w4,w5> <Key Alt 3> <Hotkey ScrollLockOn Alt 4> <SendFocusWin> <Key f10> <SendLabel w1,w2,w3,w4,w5> <Key Alt 4> <Hotkey ScrollLockOn Alt 5> <SendLabel w1,w2,w3,w4,w5> <Key Alt 5> <Hotkey ScrollLockOn Alt 6> <SendLabel w1,w2,w3,w4,w5> <Key Alt 6> <Hotkey ScrollLockOn Alt 7> <SendLabel w1,w2,w3,w4,w5> <Key Alt 7> <Hotkey ScrollLockOn Alt 8> <SendLabel w1,w2,w3,w4,w5> <Key Alt 8> <Hotkey ScrollLockOn Alt 9> <SendLabel w1,w2,w3,w4,w5> <Key Alt 9> <Hotkey ScrollLockOn Alt 0> <SendLabel w1,w2,w3,w4,w5> <Key Alt 0> <Hotkey ScrollLockOn Alt Plus> <SendLabel w1,w2,w3,w4,w5> <Key Alt Plus> <Hotkey ScrollLockOn Alt Minus> <SendLabel w1,w2,w3,w4,w5> <Key Alt Minus> <Hotkey ScrollLockOn Ctrl 1> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 1> <Hotkey ScrollLockOn Ctrl 2> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 2> <Hotkey ScrollLockOn Ctrl 3> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 3> <Hotkey ScrollLockOn Ctrl 4> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 4> <Hotkey ScrollLockOn Ctrl 5> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 5> <Hotkey ScrollLockOn Ctrl 6> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 6> <Hotkey ScrollLockOn Ctrl 7> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 7> <Hotkey ScrollLockOn Ctrl 8> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 8> <Hotkey ScrollLockOn Ctrl 9> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 9> <Hotkey ScrollLockOn Ctrl 0> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl 0> <Hotkey ScrollLockOn Ctrl Plus> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl Plus> <Hotkey ScrollLockOn Ctrl Minus> <SendLabel w1,w2,w3,w4,w5> <Key Ctrl Minus> <Hotkey ScrollLockOn Shift 1> <SendLabel w1,w2,w3,w4,w5> <Key Shift 1> <Hotkey ScrollLockOn Shift 2> <SendLabel w1,w2,w3,w4,w5> <Key Shift 2> <Hotkey ScrollLockOn Shift 3> <SendLabel w1,w2,w3,w4,w5> <Key Shift 3> <Hotkey ScrollLockOn Shift 4> <SendLabel w1,w2,w3,w4,w5> <Key Shift 4> <Hotkey ScrollLockOn Shift 5> <SendLabel w1,w2,w3,w4,w5> <Key Shift 5> <Hotkey ScrollLockOn Shift 6> <SendLabel w1,w2,w3,w4,w5> <Key Shift 6> <Hotkey ScrollLockOn Shift 7> <SendLabel w1,w2,w3,w4,w5> <Key Shift 7> <Hotkey ScrollLockOn Shift 8> <SendLabel w1,w2,w3,w4,w5> <Key Shift 8> <Hotkey ScrollLockOn Shift 9> <SendLabel w1,w2,w3,w4,w5> <Key Shift 9> <Hotkey ScrollLockOn Shift 0> <SendLabel w1,w2,w3,w4,w5> <Key Shift 0> <Hotkey ScrollLockOn Shift Plus> <SendLabel w1,w2,w3,w4,w5> <Key Shift Plus> <Hotkey ScrollLockOn Shift Minus> <SendLabel w1,w2,w3,w4,w5> <Key Shift Minus> <Hotkey ScrollLockOn Shift F1> <SendLabel w1,w2,w3,w4,w5> <Key Shift F1> <Hotkey ScrollLockOn Shift F2> <SendLabel w1,w2,w3,w4,w5> <Key Shift F2> <Hotkey ScrollLockOn Shift F3> <SendLabel w1,w2,w3,w4,w5> <Key Shift F3> <Hotkey ScrollLockOn Shift F4> <SendLabel w1,w2,w3,w4,w5> <Key Shift F4> <Hotkey ScrollLockOn Shift F5> <SendLabel w1,w2,w3,w4,w5> <Key Shift F5> <Hotkey ScrollLockOn Shift F6> <SendLabel w1,w2,w3,w4,w5> <Key Shift F6> <Hotkey ScrollLockOn Shift F7> <SendLabel w1,w2,w3,w4,w5> <Key Shift F7> <Hotkey ScrollLockOn Shift F8> <SendLabel w1,w2,w3,w4,w5> <Key Shift F8> <Hotkey ScrollLockOn Shift F9> <SendLabel w1,w2,w3,w4,w5> <Key Shift F9> <Hotkey ScrollLockOn Shift F10> <SendLabel w1,w2,w3,w4,w5> <Key Shift F10> <Hotkey ScrollLockOn Shift F11> <SendLabel w1,w2,w3,w4,w5> <Key Shift F11> <Hotkey ScrollLockOn Shift F12> <SendLabel w1,w2,w3,w4,w5> <Key Shift F12>
// Cool movement trick to spread 5 guys out: <MovementHotkey ScrollLockOn R> <SendLabel w2> <Key q> <SendLabel w3> <Key e> <SendLabel w4> <Key Up> <SendLabel w5> <Key Down
// Move your hunter back (let's say he's w5)
<MovementHotkey ScrollLockOn T> <SendLabel w5> <Key down>
Recent Posts
See AllOne click install!
https://www.youtube.com/watch?v=4splggd5uVQ&lc=Ugwv71r3_hCePU1HJTd4AaABAg
The much-requested Discord server is live. https://discord.gg/5RBK2VG