PDA

View Full Version : Problem With HKN PiP



Xzantos
01-05-2014, 03:30 AM
Hi, I'm hoping someone has experience with HKN PiP and is also using 3 monitors, I'm having a problem where I can get my WoW 1 window working fine on my first screen (left screen) but my WoW 2 (the window inside WoW 1) will not seem to work on the second screen (middle screen). What will happen is that at the log in screen WoW 2 will not even show up unless I alt tab for it to show up but when I press WoW 1 it will minimize itself on the second screen.

I have my settings as this:

<Command SetPip>
<TargetWin %2%>
<SetWinSize 600 500>
<SetWinPos 1325 0>
<TargetWin %1%>
<SetWinPos 1990 0>
<SetWinSize 1925 1170>
<TargetWin %2%>
<SetForegroundWin>
<UpdateWin>
<TargetWin %1%>
<SetWinRegion 1990 0 600 500>
<SetForegroundWin>

When I set <SetWinPos 1325 0> to 1990 0 WoW 2 for it to appear on my second screen is when it keeps minimizing itself and I don't know what else to do.

Any help would be appreciated, thanks!

Khatovar
01-05-2014, 03:58 AM
I'm not really sure I understand what you're doing. If you're running WoW1 on Monitor 1 and trying to run WoW2 on Monitor 2, then you don't need PiP. PiP {Picture in Picture} is what you use if you need to fit multiple instances on the same monitor and wish to do so by using insetting the slaves within the master's "field of play." Once you move WoW2 to 1990, it falls completely outside the bounds of the window you created for WoW1.

If you're trying to run one account on one monitor and another on a second, just use the standard resizeandposition subroutines found in most scripts.

As far as the alt tabbing and minimizing, I don't know what's going on there. Are you running in fullscreen? Use Windowed. What are you launching from? What does your script look like for your launch?

Xzantos
01-05-2014, 04:06 AM
I'm not really sure I understand what you're doing. If you're running WoW1 on Monitor 1 and trying to run WoW2 on Monitor 2, then you don't need PiP. PiP {Picture in Picture} is what you use if you need to fit multiple instances on the same monitor and wish to do so by using insetting the slaves within the master's "field of play." Once you move WoW2 to 1990, it falls completely outside the bounds of the window you created for WoW1.

If you're trying to run one account on one monitor and another on a second, just use the standard resizeandposition subroutines found in most scripts.

As far as the alt tabbing and minimizing, I don't know what's going on there. Are you running in fullscreen? Use Windowed. What are you launching from? What does your script look like for your launch?

I'm trying to launch 2 accounts on the same screen in PiP which would be screen 2, right now just the WoW 1 window works on screen 2 and WoW 2 just won't stay open inside of the WoW 1 window. I play in windowed mode for both accounts, they both worked in PiP on screen 1 but just not on the other 2 for some reason.

This is my whole script for HKN so if you find anything that might be preventing it then just say.

//-----------------------------------------------------------
// 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>

//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run "c:\Program Files (x86)\World of Warcraft\WoW.exe">
<RenameTargetWin %2%>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local WoW1>
<LaunchAndRename Local 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.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, except W, A, S, D, Q, E>
<SendLabel w1, w2>
<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>
<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>
<ClickMouse %TriggerMainKey%>

//----------------------------------------------------------------
// RENAME WINDOWS AND REMOVE BORDERS
//----------------------------------------------------------------
<Hotkey Ctrl R>
<RenameWin World WoW1>
<RemoveWinFrame>
<RenameWin World WoW2>
<RemoveWinFrame>

//----------------------------------------------------------------
// SET PIP CONFIGURATION
// Usage: <SetPip BigWindowName LittleWindowName>
// This command is called by <Hotkey F1> which is defined below.
//----------------------------------------------------------------
<Command SetPip>
<TargetWin %2%>
<SetWinSize 600 500>
<SetWinPos 1325 0>
<TargetWin %1%>
<SetWinPos 1990 0>
<SetWinSize 1925 1170>
<TargetWin %2%>
<SetForegroundWin>
<UpdateWin>
<TargetWin %1%>
<SetWinRegion 1990 0 600 500>
<SetForegroundWin>

//----------------------------------------------------------------
// TOGGLE PIP CONFIG WITH HOTKEY
//----------------------------------------------------------------
<Hotkey ScrollLockOn F1>
<Toggle>
<SetPip WoW1 WoW2>
<Toggle>
<SetPip WoW2 WoW1>

Khatovar
01-05-2014, 05:53 AM
Ok, what's going on is not that anything is minimizing, it's that the hole you are punching in the big window is using the wrong position. The second window is just hidden behind the main window.


<TargetWin %1%>
<SetWinRegion 1990 0 600 500>

This code is telling HotKeyNet where to put a hole in the main window. The hole is what allows you to see the second window through the large window. You have it starting at 1990 pixels into the window. Since you're using TargetWin, you can't use screen position to establish the hole. This code is actually putting the hole you need somewhere on the upper left corner of screen 3. Change it to 0 to have the region start over WoW2 where it belongs.

Also you need to clear the previous region when you swap windows otherwise the windows will keep resizing with huge chunks missing from them. Finally, I added a RemoveWinFrame to the LaunchAndRename to get rid of the window borders.


//-----------------------------------------------------------
// 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>

//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run "c:\Program Files (x86)\World of Warcraft\WoW.exe">
<RenameTargetWin %2%>
<RemoveWinFrame>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local WoW1>
<LaunchAndRename Local 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.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, except W, A, S, D, Q, E>
<SendLabel w1, w2>
<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>
<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>
<ClickMouse %TriggerMainKey%>

//----------------------------------------------------------------
// RENAME WINDOWS AND REMOVE BORDERS
//----------------------------------------------------------------
<Hotkey Ctrl R>
<RenameWin World WoW1>
<RemoveWinFrame>
<RenameWin World WoW2>
<RemoveWinFrame>

//----------------------------------------------------------------
// SET PIP CONFIGURATION
// Usage: <SetPip BigWindowName LittleWindowName>
// This command is called by <Hotkey F1> which is defined below.
//----------------------------------------------------------------
<Command SetPip>
<TargetWin %2%>
<SetWinSize 600 500>
<SetWinPos 1990 0>
<TargetWin %1%>
<SetWinPos 1990 0>
<SetWinSize 1925 1170>
<TargetWin %2%>
<SetForegroundWin>
<SetWinRegion none>
<UpdateWin>
<TargetWin %1%>
<SetWinRegion 0 0 600 500>
<SetForegroundWin>


//----------------------------------------------------------------
// TOGGLE PIP CONFIG WITH HOTKEY
//----------------------------------------------------------------
<Hotkey ScrollLockOn F1>
<Toggle>
<SetPip WoW1 WoW2>
<Toggle>
<SetPip WoW2 WoW1>

Xzantos
01-05-2014, 11:20 AM
Ok, what's going on is not that anything is minimizing, it's that the hole you are punching in the big window is using the wrong position. The second window is just hidden behind the main window.


<TargetWin %1%>
<SetWinRegion 1990 0 600 500>

This code is telling HotKeyNet where to put a hole in the main window. The hole is what allows you to see the second window through the large window. You have it starting at 1990 pixels into the window. Since you're using TargetWin, you can't use screen position to establish the hole. This code is actually putting the hole you need somewhere on the upper left corner of screen 3. Change it to 0 to have the region start over WoW2 where it belongs.

Also you need to clear the previous region when you swap windows otherwise the windows will keep resizing with huge chunks missing from them. Finally, I added a RemoveWinFrame to the LaunchAndRename to get rid of the window borders.


//-----------------------------------------------------------
// 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>

//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
<Run "c:\Program Files (x86)\World of Warcraft\WoW.exe">
<RenameTargetWin %2%>
<RemoveWinFrame>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local WoW1>
<LaunchAndRename Local 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.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, except W, A, S, D, Q, E>
<SendLabel w1, w2>
<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>
<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>
<ClickMouse %TriggerMainKey%>

//----------------------------------------------------------------
// RENAME WINDOWS AND REMOVE BORDERS
//----------------------------------------------------------------
<Hotkey Ctrl R>
<RenameWin World WoW1>
<RemoveWinFrame>
<RenameWin World WoW2>
<RemoveWinFrame>

//----------------------------------------------------------------
// SET PIP CONFIGURATION
// Usage: <SetPip BigWindowName LittleWindowName>
// This command is called by <Hotkey F1> which is defined below.
//----------------------------------------------------------------
<Command SetPip>
<TargetWin %2%>
<SetWinSize 600 500>
<SetWinPos 1990 0>
<TargetWin %1%>
<SetWinPos 1990 0>
<SetWinSize 1925 1170>
<TargetWin %2%>
<SetForegroundWin>
<SetWinRegion none>
<UpdateWin>
<TargetWin %1%>
<SetWinRegion 0 0 600 500>
<SetForegroundWin>


//----------------------------------------------------------------
// TOGGLE PIP CONFIG WITH HOTKEY
//----------------------------------------------------------------
<Hotkey ScrollLockOn F1>
<Toggle>
<SetPip WoW1 WoW2>
<Toggle>
<SetPip WoW2 WoW1>

That worked, thanks! :D