Log in

View Full Version : Multi Machine Setup



mikekim
02-27-2009, 09:27 AM
I've been looking to migrate from keyclone to Hotkeynet, as keyclone is a bit of a nightmare with regards to mouse broadcasting for AOE spells.

Reading up on the HKN forums and here i have started to piece together a script and was looking for some help from the experts here on getting proper configuration.

Brief overview on my setup: (2 pc's 3 screens 5 accounts)

pc 1 (192.168.0.20)
main pc
1x24" screen 1920x1200
1 instance of wow
run from c:\wow-single

pc2 (192.168.0.25)
slave pc
2x22" screen rotated through 90' 1050x1680
(2 copies of wow on each screen each running 1050x840)
run from (symbolic links)
4 instances of wow
c:\wow2
c:\wow3
c:\wow4
c:\wow5

if someone could have a look at the script below and possibly point me in the right direction i would be most greatful

thanks





//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC local>
<Run "c:\Wow-single\WoW.exe">
// what do i put in here for the locations of the slave wow folders?


//-----------------------------------------------------------
// Initial window positions
//-----------------------------------------------------------
<Command SetF1Pos>
<TargetWin WoW1>
<SetWinPos 0 0>
<SetWinSize 1920 1200>
<SetForegroundWin>
<UpdateWin>
<TargetWin WoW2>
<SetWinPos 0 0>
<SetWinSize 1050 840>
<TargetWin WoW3>
<SetWinPos 0 841>
<SetWinSize 1050 840>
<TargetWin WoW4>
<SetWinPos 1051 0>
<SetWinSize 1050 840>
<TargetWin WoW5>
<SetWinPos 1051 841>
<SetWinSize 1050 840>

//-----------------------------------------------------------
// DEFINE A MAIL LABEL FOR EACH WOW
//-----------------------------------------------------------
<Label w1 Local SendWinM WoW1>
<Label w2 192.168.0.25 SendWinM WoW2>
<Label w3 192.168.0.25 SendWinM WoW3>
<Label w4 192.168.0.25 SendWinM WoW4>
<Label w5 192.168.0.25 SendWinM WoW5>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME THE WOW WINDOWS.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local WoW1>
<RemoveWinFrame>
<sendpc local>
<wait 1000>
<text YourUsername>
<Key tab>a
<text YourPassword>
<wait 100>
<Key Enter>
<LaunchAndRename 192.168.0.25 WoW2>
<RemoveWinFrame>
<sendpc 192.168.0.25>
<wait 1000>
<text YourUsername>
<Key tab>a
<text YourPassword>
<wait 100>
<Key Enter>
<LaunchAndRename 192.168.0.25 WoW3>
<RemoveWinFrame>
<sendpc 192.168.0.25>
<wait 1000>
<text YourUsername>
<Key tab>a
<text YourPassword>
<wait 100>
<Key Enter>
<LaunchAndRename 192.168.0.25 WoW4>
<RemoveWinFrame>
<sendpc 192.168.0.25>
<wait 1000>
<text YourUsername>
<Key tab>a
<text YourPassword>
<wait 100>
<Key Enter>
<LaunchAndRename 192.168.0.25 WoW5>
<RemoveWinFrame>
<sendpc 192.168.0.25>
<wait 1000>
<text YourUsername>
<Key tab>a
<text YourPassword>
<wait 100>
<Key Enter>

//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL FOUR WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, F1-F12>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO ALL FOUR 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, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3, w4, w5>
<ClickMouse %TriggerMainKey%>

edits: i really should spell check these before posting..

olipcs
02-27-2009, 01:55 PM
from scratch I would try the following script:


//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<RenameTargetWin %3%>
<RemoveWinFrame>
<SetWinRect %4% %5% %6% %7%>
<wait 1000>
<text %8%>
<Key tab>
<text %9%>
<wait 100>
<Key Enter>

//-----------------------------------------------------------
// DEFINE A MAIL LABEL FOR EACH WOW
//-----------------------------------------------------------
<Label w1 192.168.0.20 SendWinM WoW1>
<Label w2 192.168.0.25 SendWinM WoW2>
<Label w3 192.168.0.25 SendWinM WoW3>
<Label w4 192.168.0.25 SendWinM WoW4>
<Label w5 192.168.0.25 SendWinM WoW5>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME THE WOW WINDOWS.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename 192.168.0.20 "c:\wow-single\wow.exe" WoW1 0 0 1920 1200 "YourUsername" "YourPassword">
<LaunchAndRename 192.168.0.25 "c:\wow2\wow.exe" WoW2 0 0 1050 840 "YourUsername" "YourPassword">
<LaunchAndRename 192.168.0.25 "c:\wow3\wow.exe" WoW3 0 840 1050 840 "YourUsername" "YourPassword">
<LaunchAndRename 192.168.0.25 "c:\wow4\wow.exe" WoW4 1050 0 1050 840 "YourUsername" "YourPassword">
<LaunchAndRename 192.168.0.25 "c:\wow5\wow.exe" WoW5 1050 840 1050 840 "YourUsername" "YourPassword">

//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL FOUR WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, F1-F12>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO ALL FOUR 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, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3, w4, w5>
<ClickMouse %TriggerMainKey%>

Load it on both PCs, and the by pressing ctrl + alt + l on one of them the 5 wows should start....
(i'm not exactly sure if the 'login'-part realy works, but starting,resizing and broadcasting should...)

mikekim
02-27-2009, 02:09 PM
thanks,

I'll give it a try over the weekend and let you know how it goes :thumbup:

Freddie
02-27-2009, 08:41 PM
/applaud Olipcs. :)

Edit: Two words and I managed to mispell one. :)

mikekim
02-28-2009, 07:58 AM
Olipcs the code was excellent apart from the error in line 49 (but i wont hold that against you :P ) the automatic login works perfectly

i have attached my final script so that other people can use / modify it, if required (added a couple of extra keys)

the mouse broadcasting works a treat.. my treants have never been so happy :thumbup:


//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<RenameTargetWin %3%>
<RemoveWinFrame>
<SetWinRect %4% %5% %6% %7%>
<wait 1000>
<text %8%>
<Key tab>
<text %9%>
<wait 100>
<Key Enter>

//-----------------------------------------------------------
// DEFINE A MAIL LABEL FOR EACH WOW
//-----------------------------------------------------------
<Label w1 192.168.0.20 SendWinM WoW1>
<Label w2 192.168.0.25 SendWinM WoW2>
<Label w3 192.168.0.25 SendWinM WoW3>
<Label w4 192.168.0.25 SendWinM WoW4>
<Label w5 192.168.0.25 SendWinM WoW5>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME THE WOW WINDOWS.
//-----------------------------------------------------------
<Hotkey ScrollLockOn ctrl alt l>
<LaunchAndRename 192.168.0.20 "c:\wow-single\wow.exe" WoW1 0 0 1920 1200 "username1" "password1">
<LaunchAndRename 192.168.0.25 "c:\wow2\wow.exe" WoW2 0 0 1050 840 "username2" "password2">
<LaunchAndRename 192.168.0.25 "c:\wow3\wow.exe" WoW3 0 840 1050 840 "username3" "password3">
<LaunchAndRename 192.168.0.25 "c:\wow4\wow.exe" WoW4 1050 0 1050 840 "username4" "password4">
<LaunchAndRename 192.168.0.25 "c:\wow5\wow.exe" WoW5 1050 840 1050 840 "username5" "password5">


//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL FIVE WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, F1-F12, minus, plus, insert, backspace, delete, pgup, pgdn, home, end, enter, space, oem2, esc>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

<Hotkey ScrollLockOn Numpad0 - Numpad9>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

<Hotkey ScrollLockOn Shift AllMainKeys; Alt AllMainKeys; ctrl AllMainKeys>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>


//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO ALL FIVE 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 OEM8 (top left corner the ¬ key) WHEN YOU WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier Oem8>
<Hotkey ScrollLockOn Oem8 LButton, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3, w4, w5>
<ClickMouse %TriggerMainKey%>

Olipcs - thanks you very much for your time and effort
Freddie - thanks for the great program

Just quick footnote:

this program is well worth spending some time getting to know. There are a host of options that you can use to enhance your multiboxing experience. 5/5 :thumbsup:

aerows
03-01-2009, 12:36 AM
/applaud Olipcs. :)

Edit: Two words and I managed to mispell one. :)Actually, you misspelled misspell, too lol !

:D

I absolutely LOVE HotKeyNet and the mouse broadcasting in 165. It's fantastic, thank you for making it, and sharing it with the multiboxing community.

Freddie
03-01-2009, 02:00 AM
Freddie - thanks for the great program

Just quick footnote:

this program is well worth spending some time getting to know. There are a host of options that you can use to enhance your multiboxing experience. 5/5 :thumbsup:
You're welcome and thanks for the passing grade! :)

Freddie
03-01-2009, 02:03 AM
/applaud Olipcs. :)

Edit: Two words and I managed to mispell one. :)Actually, you misspelled misspell, too lol !
lol. I giv upp! :)


I absolutely LOVE HotKeyNet and the mouse broadcasting in 165. It's fantastic, thank you for making it, and sharing it with the multiboxing community.
You're welcome. :) Did you also try mouse broadcasting in earlier builds? I'm curious to hear from people how much of an improvement they noticed. What delay settings are you using in 165?