PDA

View Full Version : HotKeyNet not working, noob requesting help here



CaptainHowdy60
11-16-2020, 03:57 PM
Greetings,

I'm new to multi-boxing and I'm trying to do it on one PC with an old game called Earth and Beyond. There is no anti-cheat programs or anything (devs said it's tollerated) and for the life of me I can't get HotKeyNet to work. All I want is a simple program/script to make key strokes on my other windows without me having to swap to them. Pretty simple right? Well I downloaded HotKeyNet and tweaked the example WoW script for my game. I can get HKN to change the names of the game instances no problem. All 5 of them can easily be named EB1,2,3,4,5 and I can rename them manually. The problem comes when I load a script to actually broadcast the keys. On my main game, none of the keys work that I have set as hotkeys. None of my other games get the hotkey either. I have ran the program in different compatibilities and I'm running as admin from the HKN folder. If I add a passthrough command into the script my main game will do the commands but again no other window gets the hotkey. I have tried renaming the windows twice because of maybe a ghost window of the game running but that does nothing. I'm at a total loss on what to do. I have also tried a simple script to put text into a work doc and it still doesn't work. Same thing, keys not working that are assigned hotkeys and no text in the word doc. I should add that HKN says there's no errors and in the Actions on this PC, it says it sees the EB1,2,3,4,5 and the hoykeys are sent there but nothing happens in the game. It's like windows is blocking HKN from actually delivering the key strokes. Any help would be appreciated. Thank you.

bpkdasbaum
11-23-2020, 06:00 AM
Post your script and we will see what it does / what needs to be changed for your use case.
Remove any passwords in case you got autologin within the script.
Tell us the paths and how many clients you want to start, what your monitor setup is like.

This is my personal script I used for WOW previously it has the following features:

- autologin, resize and position
- start separate clients based on my needs or start all via shortcuts (CTRL ALT KEY)
- shoprtcuts automatically re-arange windows to certain positions for switching main window
- activate mouse on all clients via numlock
- up down left right get sent to all clients always
- certain keys get sent to specific clients
- Shift S is always sent to all clients (to break follow)

It would need some editing for your needs. It's more advanced than the basic script that is shared for starters, but also not crazy advanced like some other highly specialized scripts. I shared it with multiple friends and they were able to adapt it real quick.
Your game probably won't need the WW1 WOW1 renaming scheme, that's specific to how wow starts a hidden process in the background this might be your issue if you used the basic script shared on the homepage.

bpkdasbaum
11-23-2020, 06:01 AM
//-----------------------------------------------------------
// RESIZE AND POSITION Subroutine
//-----------------------------------------------------------
<Command ResizeAndPosition>
<SendPC Local>
<TargetWin %1%>
<RemoveWinFrame>
<SetWinRect 0 0 1280 720>
<TargetWin %2%>
<RemoveWinFrame>
<SetWinRect 1280 0 1280 720>
<TargetWin %3%>
<RemoveWinFrame>
// <SetWinRect 0 720 1280 720>
<SetWinRect 0 720 1280 658>
<TargetWin %4%>
<RemoveWinFrame>
// <SetWinRect 1280 720 1280 720>
<SetWinRect 1280 720 1280 658>
<TargetWin %5%>
<SetWinRect -3840 -349 3840 2160>
<MaximizeWin>
<TargetWin %6%>
<RemoveWinFrame>
// <SetWinRect 960 540 640 360>
<SetWinRect 640 360 1280 720>
// <AlwaysOnTop on>

<Command ResizeAndPositionX>
<SendPC Local>
<TargetWin %1%>
<RemoveWinFrame>
<SetWinRect -3840 -349 1920 1080>
<TargetWin %2%>
<RemoveWinFrame>
<SetWinRect -1920 -349 1920 1080>
<TargetWin %3%>
<RemoveWinFrame>
<SetWinRect -3840 731 1920 1080>
<TargetWin %4%>
<RemoveWinFrame>
<SetWinRect -1920 731 1920 1080>
<TargetWin %5%>
<SetWinRect 0 0 2560 1440>
<MaximizeWin>
<TargetWin %6%>
<RemoveWinFrame>
<SetWinRect -2880 191 1920 1080>

<Command ResizeAndPosition_leftright>
<SendPC Local>
<TargetWin %1%>
<SetWinRect -3840 -349 3840 2160>
<RemoveWinFrame>
<MaximizeWin>
<TargetWin %2%>
<SetWinRect 0 0 2560 1440>
<MaximizeWin>

<Command ResizeAndPosition_all>
<SendPC Local>
<TargetWin %1%>
<RemoveWinFrame>
<SetWinRect 0 0 1280 720>
<TargetWin %2%>
<RemoveWinFrame>
<SetWinRect 1280 0 1280 720>
<TargetWin %3%>
<RemoveWinFrame>
<SetWinRect 0 720 1280 658>
<TargetWin %4%>
<RemoveWinFrame>
<SetWinRect 1280 720 1280 658>
<TargetWin %5%>
<RemoveWinFrame>
<SetWinRect -3840 -349 1920 1080>
<TargetWin %6%>
<RemoveWinFrame>
<SetWinRect -1920 -349 1920 1080>
<TargetWin %7%>
<RemoveWinFrame>
<SetWinRect -3840 731 1920 1080>
<TargetWin %8%>
<RemoveWinFrame>
<SetWinRect -1920 731 1920 1080>

//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------

<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<wait 1000>
<RenameWin "World of Warcraft" %3%>
<wait 1000>
<RenameWin "World of Warcraft" %4%>
<wait 1000>
<text %5%>
<wait 100>
<Key Enter>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME YOUR WOW WINDOWS
//-----------------------------------------------------------

<Hotkey LCtrl LAlt L>
<if WinDoesNotExist WoW1>
<LaunchAndRename Local "C:\Spiele\WoW Box1\_classic_\WowClassic.exe" WW1 WoW1 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW2>
<LaunchAndRename Local "C:\Spiele\WoW Box2\_classic_\WowClassic.exe" WW2 WoW2 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW3>
<LaunchAndRename Local "C:\Spiele\WoW Box3\_classic_\WowClassic.exe" WW3 WoW3 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW4>
<LaunchAndRename Local "C:\Spiele\WoW Box4\_classic_\WowClassic.exe" WW4 WoW4 YOURPASSWORD>
<endif>
// <if WinDoesNotExist WoW5>
// <LaunchAndRename Local "C:\Spiele\WoW Box5\_classic_\WowClassic.exe" WW5 WoW5 YOURPASSWORD>
// <endif>
<if WinDoesNotExist WoW6>
<LaunchAndRename Local "C:\Spiele\World of Warcraft\_classic_\WowClassic.exe" WW6 WoW6 YOURPASSWORD>
<endif>
<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW6 WoW5>

<Hotkey Ctrl ALT P>
<if WinDoesNotExist WoW6>
<LaunchAndRename Local "C:\Spiele\World of Warcraft\_classic_\WowClassic.exe" WW6 WoW6 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW7>
<LaunchAndRename Local "C:\Spiele\WoW Anne\_classic_\WowClassic.exe" WW7 WoW7 YOURPASSWORD>
<endif>
<ResizeAndPosition_leftright WoW6 WoW7>

<Hotkey Ctrl ALT O>
<if WinDoesNotExist WoW6>
<LaunchAndRename Local "C:\Spiele\World of Warcraft\_classic_\WowClassic.exe" WW6 WoW6 YOURPASSWORD>
<endif>
<TargetWin WoW6>
<SetWinRect -3840 -349 3840 2160>
<RemoveWinFrame>
<MaximizeWin>

<Hotkey LCtrl LAlt 0>
<if WinDoesNotExist WoW5>
<LaunchAndRename Local "C:\Spiele\WoW Box5\_classic_\WowClassic.exe" WW5 WoW5 YOURPASSWORD>
<endif>
<TargetWin WoW5>
<RemoveWinFrame>
<SetWinRect 640 360 1280 720>
// <SetWinRect 0 0 2560 1440>
// <RemoveWinFrame>
// <MaximizeWin>

<Hotkey LCtrl LAlt 7>
<if WinDoesNotExist WoW5>
<LaunchAndRename Local "C:\Spiele\WoW Box5\_classic_\WowClassic.exe" WW5 WoW5 YOURPASSWORD>
<endif>
<TargetWin WoW5>
<RemoveWinFrame>
<SetWinRect 0 0 2560 1440>

<Hotkey LCtrl LAlt 9>
<if WinDoesNotExist WoW1>
<LaunchAndRename Local "C:\Spiele\WoW Box1\_classic_\WowClassic.exe" WW1 WoW1 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW2>
<LaunchAndRename Local "C:\Spiele\WoW Box2\_classic_\WowClassic.exe" WW2 WoW2 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW3>
<LaunchAndRename Local "C:\Spiele\WoW Box3\_classic_\WowClassic.exe" WW3 WoW3 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW4>
<LaunchAndRename Local "C:\Spiele\WoW Box4\_classic_\WowClassic.exe" WW4 WoW4 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW5>
<LaunchAndRename Local "C:\Spiele\WoW Box5\_classic_\WowClassic.exe" WW5 WoW5 YOURPASSWORD>
<endif>
<if WinDoesNotExist WoW6>
<LaunchAndRename Local "C:\Spiele\World of Warcraft\_classic_\WowClassic.exe" WW6 WoW6 YOURPASSWORD>
<endif>
<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW6 WoW5>

<Hotkey LCtrl LAlt I>
<if WinDoesNotExist WoW7>
<LaunchAndRename Local "C:\Spiele\WoW Anne\_classic_\WowClassic.exe" WW7 WoW7 YOURPASSWORD>
<endif>
<TargetWin WoW7>
<RemoveWinFrame>
<SetWinRect 640 360 1280 720>


//-----------------------------------------------------------
//Window Switching
//-----------------------------------------------------------
<Hotkey CTRL ALT F5>
<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW6 WoW5>
<Hotkey CTRL ALT F6>
<ResizeAndPositionX WoW1 WoW2 WoW3 WoW4 WoW6 WoW5>
<Hotkey CTRL ALT F7>
<ResizeAndPosition_leftright WoW6 WoW7>
<Hotkey CTRL ALT F8>
<ResizeAndPosition_leftright WoW7 WoW6>
<Hotkey CTRL ALT F9>
<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
<Hotkey CTRL ALT F10>
<ResizeAndPosition_all WoW1 WoW2 WoW3 WoW4 WoW6 WoW7 WoW5 WoWX>
<Hotkey CTRL ALT F11>
<ResizeAndPosition_all WoW6 WoW7 WoW5 WoWx WoW1 WoW2 WoW3 WoW4>
<Hotkey CTRL ALT F1>
<ResizeAndPosition WoW6 WoW2 WoW3 WoW4 WoW1 WoW5>
<Hotkey CTRL ALT F2>
<ResizeAndPositionX WoW6 WoW2 WoW3 WoW4 WoW1 WoW5>
<Hotkey CTRL ALT F3>
<ResizeAndPosition WoW1 WoW6 WoW3 WoW4 WoW2 WoW5>
<Hotkey CTRL ALT F4>
<ResizeAndPosition WoW1 WoW2 WoW6 WoW4 WoW3 WoW5>
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES.
//-----------------------------------------------------------
<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>
<Label w6 Local SendWinM WoW6>
<Label w7 Local SendWinM WoW7>

//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------

<KeyList List1 Space, Esc, Enter, Tab, Divide, Backspace, A-Z, 0-9, Plus, Minus, F5-F10, Numpadplus, Numpadminus except W, A, S, D, F4, N, R, F>
<KeyList List2 Space, Divide, A-Z, F2-F11, except W, A, S, D, E, F, C>
<KeyList List3 Space, Tab, A-Z, 0-9, F2-F10, Space, except F4, F, G>
<KeyList List4 A-Z, F2-F11 except F4, F, G>
//<KeyList List5 F2>

//<Hotkey ScrollLockOn List1; ScrollLockOn Shift List2; ScrollLockOn CTRL List3; ScrollLockOn ALT List4; ScrollLockOn CTRL ALT List5>
<Hotkey ScrollLockOn List1; ScrollLockOn Shift List2; ScrollLockOn CTRL List3; ScrollLockOn ALT List4>
<SendLabel w1, w2, w3, w4, w6, w7>
<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, w6, w7>
<Key %Trigger%>

<MovementHotkey ScrollLockOn Shift S>
<SendLabel w1, w2, w3, w4, w6, w7>
<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.
//-----------------------------------------------------------

<Hotkey NumlockOff LButton, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3, w4, w6, w7>
<ClickMouse %TriggerMainKey%>