Hi, try the following script:
Code:
//================================================================
// SAMPLE SCRIPT FOR 2 WOW'S ON ONE PC
//
// Instructions: Copy this entire script (all the blue writing
// on gray background including comments). Save it in a file.
// Load it into HotkeyNet.
//
//
// For more info, go to www.hotkeynet.com
//================================================================
//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<RenameTargetWin %3%>
<RemoveWinFrame>
<SetAffinity %4%>
//-----------------------------------------------------------
// SUBROUTINE TO Position a Window.
//-----------------------------------------------------------
<Command ResizeAndPosition>
<SendPC Local>
<SendWinM %1%><SetWinRedraw off>
<SetWinSize 1280 980>
<SetWinPos 0 0>
<SetWinRedraw on>
<UpdateWin>
<SendWinM %2%><SetWinRedraw off>
<SetWinSize 640 512>
<SetWinPos 1280 0>
<SetWinRedraw on>
<UpdateWin>
//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME YOUR WOW WINDOWS
//-----------------------------------------------------------
<Hotkey Alt Ctrl L>
<LaunchAndRename Local "C:\temp\multi\w1\wow.exe" WoW1 1>
<LaunchAndRename Local "C:\temp\multi\w2\wow.exe" WoW2 2>
<ResizeAndPosition WoW1 WoW2>
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES.
//-----------------------------------------------------------
<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList A-Z, 1-9, F3-F12, Enter, Tab, Oem4, Comma, Oem6 except W, A, S, D, Q, E >
<Hotkey MyList; Shift MyList; Alt MyList; Shift Alt MyList>
<If ActiveWinIs WoW>
<SendLabel w1, w2>
<Key %Trigger%>
<Else>
<SendFocusWin>
<Key %Trigger%>
<KeyList MyList2 A-Z, 1-9, F3-F12, Enter, Tab, Oem4, Comma, Oem6 except W, A, S, D, Q, E, L>
<Hotkey Ctrl MyList2; Ctrl Alt MyList2; Ctrl Alt Shift MyList2>
<If ActiveWinIs WoW>
<SendLabel w1, w2>
<Key %Trigger%>
<Else>
<SendFocusWin>
<Key %Trigger%>
//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey up, down, left, right, space>
<SendLabel w1, w2>
<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 Button4>
<Hotkey Button4 LButton, MButton, RButton, Button5>
<SendLabel w1, w2>
<ClickMouse %TriggerMainKey%>
//Toggle HotkeyNet off
<hotkey Shift Oem5>
<sendpc local>
<ToggleHotkeys>
//----------------------------------------------------------------
// TOGGLE PIPS (F1= WoW1=main / F2= WoW2 = main)
//----------------------------------------------------------------
<Hotkey F1>
<ResizeAndPosition WoW1 WoW2>
<Hotkey F2>
<ResizeAndPosition WoW2 WoW1>
. to get it working/customized for you, you have to:
1. Sub the right directorys in line 45 and 46
2. Define the position and size your 'main'-window should have (line 29,30) and position size of your 'slave'-window (34,35)
There is no simple option to pass all keys with hotkeynet, but i tried to configure it for some by setting up a list (see line: 59,68) if a key is missing add it there.
The script has the following functionality:
ctrl+alt+l : starts the wows, resizes and positions them
^ : toggle hkn off (for my german keyboard its oem6 you might have to look if its another oemX on yours)
F1,F2: PiP
MouseButton4 + AnotherMouseButton: broadcast Mouse
hope this helps, if you have any questions feel free to look at hotkeynet.com or ask here
hope this help
Connect With Us