Log in

View Full Version : [WoW] HotKeyNet problem with PiP



Nitemaru
07-23-2013, 06:41 AM
Hello there.... i am a noob at boxing( forum posting also) ... and i would like some help with a problem i have on my Pip set up. My small windows get minimized everytime i click on my maximized one.Any help would be highly appreciated. Thanks in advance...

here is my code:


//================================================== ==============
// SAMPLE SCRIPT FOR FOUR 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.
//
// Toggle the scroll lock key to turn hotkeys off and on. (You
// can change this if you want, just like you can change
// everything else with HotkeyNet.)
//
// Requires HotkeyNet build 148 or higher.
//
// For more info, go to www.hotkeynet.com (http://www.hotkeynet.com)
//================================================== ==============






//----------------------------------------------------------
// TOGGLE HKN MUTE
//----------------------------------------------------------
<hotkey Pause>
<sendpc local>
<ToggleHotkeys>




//-----------------------------------------------------------
// PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl R>
<SendPC local>
<RenameWin "World of Warcraft" WoW1>
<RenameWin "World of Warcraft" WoW2>
<RenameWin "World of Warcraft" WoW3>
<RenameWin "World of Warcraft" WoW4>
<RenameWin "World of Warcraft" WoW5>


//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run "E:\World of Warcraft\Wow.exe">
<RenameTargetWin %2%>


//--------------------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW. - Different Folder-
//--------------------------------------------------------------------
//<Command LaunchAndRename>
// <SendPC %1%>
// <Run %2%>
// <RenameTargetWin %3%>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME YOUR WOW WINDOWS
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl w>
<LaunchAndRename Local WoW1>
<RemoveWinFrame>
<wait 6000>
<SendWinM WoW1>
<AlwaysOnTop on>
<SetAffinity 0>
<SetWinPos 0 0>
<SetWinSize 1680 1030>
<text AccountName>
<wait 500>
<key TAB>
<text Password>
<wait 2000>
<key ENTER>
<LaunchAndRename Local WoW2>
<RemoveWinFrame>
<wait 6000>
<SendWinM WoW2>
<AlwaysOnTop on>
<SetAffinity 0>
<SetWinPos -1680 0>
<SetWinSize 1680 1050>
<SetWinRegion -500 0 500 350>
<SetWinRegion -500 350 500 350>
<SetWinRegion -500 700 500 350>
<SetForegroundWin>
<text AccountName>
<wait 1000>
<key TAB>
<text Password>
<wait 2000>
<key ENTER>
<wait 2000>
<key ENTER>
<LaunchAndRename Local WoW3>
<RemoveWinFrame>
<wait 6000>
<SendWinM WoW3>
<AlwaysOnTop on>
<SetAffinity 1>
<SetWinPos -500 0>
<SetWinSize 500 350>
<SetForegroundWin>
<text AccountName>
<wait 1000>
<key TAB>
<text Password>
<wait 2000>
<key ENTER>
<wait 2000>
<key ENTER>
<LaunchAndRename Local WoW4>
<RemoveWinFrame>
<wait 6000>
<SendWinM WoW4>
<AlwaysOnTop on>
<SetAffinity 1>
<SetWinPos -500 350>
<SetWinSize 500 350>
<SetForegroundWin>
<text AccountName>
<wait 1000>
<key TAB>
<text Password>
<wait 2000>
<key ENTER>
<wait 3000>
<key ENTER>
<LaunchAndRename Local WoW5>
<RemoveWinFrame>
<wait 6000>
<SendWinM WoW5>
<AlwaysOnTop on>
<SetAffinity 0>
<SetWinPos -500 700>
<SetWinSize 500 350>
<SetForegroundWin>
<text AccountName>
<wait 1000>
<key TAB>
<text Password>
<wait 3000>
<key ENTER>
<wait 3000>
<key ENTER>


//----------------------------------------------------------------
// SET PIP CONFIGURATION
// Usage: <SetPip BigWindowName LittleWindowName>
// This command is called by <AnyKey> which is defined below.
//----------------------------------------------------------------
<Command SetPip>
<TargetWin %3%>
<SetWinSize 500 350>
<SetWinPos -500 0>
<TargetWin %4%>
<SetWinSize 500 350>
<SetWinPos -500 350>
<TargetWin %5%>
<SetWinSize 500 350>
<SetWinPos -500 700>
<TargetWin %2%>
<SetWinSize 1680 1050>
<SetWinPos -1680 0>
<TargetWin %3%>
<SetForegroundWin>
<UpdateWin>
<TargetWin %4%>
<SetForegroundWin>
<UpdateWin>
<TargetWin %5%>
<SetForegroundWin>
<UpdateWin>
<TargetWin %2%>
<SetWinRegion -500 0 500 350>
<SetWinRegion -500 350 500 350>
<SetWinRegion -500 700 500 350>
<SetForegroundWin>
//----------------------------------------------------------------
// TOGGLE PIP CONFIG WITH HOTKEY
//----------------------------------------------------------------
<Hotkey NumLockOn Insert>
<Toggle>
<SetPip WoW2 WoW3 WoW4 WoW5>
<Toggle>
<SetPip WoW3 WoW4 WoW5 WoW2>
<Toggle>
<SetPip WoW4 WoW5 WoW2 WoW3>
<Toggle>
<SetPip WoW5 WoW2 WoW3 WoW4>
//----------------------------------------------------------------
// TOGGLE PIP OFF WITH HOTKEY
//----------------------------------------------------------------
<Hotkey NumLockOn Delete>
<TargetWin WoW2>
<SetWinRegion none>
<TargetWin WoW3>
<SetWinRegion none>
<TargetWin WoW4>
<SetWinRegion none>
<TargetWin WoW5>
<SetWinRegion none>


//-----------------------------------------------------------
// 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>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList A-W, 0-9, up, down, right, left, Plus, Minus, Divide, Multiply, Numpad1-Numpad9, NumpadMinus, NumpadPlus, Space, F1-F12 except w, a, s, d, q, e>


<Hotkey NumLockOn MyList; NumLockOn Shift MyList; NumLockOn Alt MyList; NumLockOn Ctrl MyList>
<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.
//-----------------------------------------------------------
//----------------------------------------------------------------
// DEFINE A MOVEMENT HOTKEY FOR FORMATION
//----------------------------------------------------------------
<MovementHotkey ScrollLockOn z>
<SendLabel w2, w4>
<Key right>
<Key up>
<SendLabel w3, w5>
<Key left>
<Key up>


<MovementHotkey ScrollLockOn x>
<SendLabel w4>
<Key right>
<SendLabel w5>
<Key left>


//-----------------------------------------------------------
// 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 Oem3 LButton, MButton, RButton>
<SendLabel w1, w2>
<ClickMouse %TriggerMainKey%>




//-----------------------------------------------------------
// DEFINE KEYS THAT WOW IS BEING DIFFICULT ABOUT.
//
//-----------------------------------------------------------
<Hotkey Button4>
<SendLabel w1, w2, w3, w4, w5>
<Key Ctrl 9>

<Hotkey Button5>
<SendLabel w1, w2, w3, w4, w5>
<Key Shift 9>


<Hotkey Shift Button4>
<SendLabel w1, w2, w3, w4, w5>
<Key Ctrl 0>

<Hotkey Shift Button5>
<SendLabel w1, w2, w3, w4, w5>
<Key Shift 0>

Khatovar
07-23-2013, 06:52 AM
My PiP doesn't use AlwaysOnTop or SetForegroundWin, but since you're using a private server who knows if it's anything to do with the script at all?

Nitemaru
07-23-2013, 08:42 AM
Thanks for your reply :)

So are you saying that AlwaysOnTop or SetForeground is not needed? My basic question is how to click on my BigWindow and not having my small ones dissapear, making me press Alt+Tab to bring them up again. If its not the place to post or something like that let me know so i dont keep posting O.,o.

Nitemaru
07-24-2013, 06:29 AM
Ok i found the problem.... the PiP setup had to be on the main screen to work.For some reason when i had them lined up on the secondary screen the small windows couldnt stay on top when i clicked the big one.