Close
Showing results 1 to 2 of 2

Hybrid View

  1. #1

    Default [WoW]PiP 5 clients

    Trying to get the PiP to work. The 4 minions show up on the screen in place and viewable, however the main wow1 only shows like 25% of the window and I see the desktop background. I also am trying to remove the window border and the code I used gave an error that window could not be found. I am using a 43 inch display with 3840x2160 but I am sure that those are the numbers I should be using. Any help would be greatly appreciated.


    Code:
    //================================================================
    // SAMPLE SCRIPT FOR TWO 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 147 or higher.
    //
    // For more info, go to www.hotkeynet.com
    //================================================================
     
    //-----------------------------------------------------------
    // PRESS CTRL R, CTRL R, CTRL T TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Ctrl R>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW1>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW2>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW3>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW4>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW5>
     
    <Hotkey ScrollLockOn Ctrl T>
    <SendPC local>
    <RenameWin WoW1 "World of Warcraft">
    <SendPC local>
    <RenameWin WoW2 "World of Warcraft">
    <SendPC local>
    <RenameWin WoW3 "World of Warcraft">
    <SendPC local>
    <RenameWin WoW4 "World of Warcraft">
    <SendPC local>
    <RenameWin WoW5 "World of Warcraft">
    
    
    <Command SetPip>
     
       <SendPC Local>
           <SendWin %1%>
              <SetWinSize 3840 2160>
              <SetWinPos 0 0>
              <SetWinRegion 0 0 400 400>
              <SetWinRegion 0 400 400 400>
              <SetWinRegion 0 800 400 400>
              <SetWinRegion 0 1200 400 400>
          <SendWinM %2%>
              <SetWinSize 400 400>
              <SetWinPos 0 0>     
          <SendWinM %3%>
              <SetWinSize 400 400>
              <SetWinPos 0 400>     
          <SendWinM %4%>
              <SetWinSize 460 420>
              <SetWinPos 0 800>     
         <SendWinM %5%>
               <SetWinSize 400 400>
               <SetWinPos 0 1200>
    
    
    //------------
     // TOGGLE PIP CONFIG WITH HOTKEY
     //------------
     <Hotkey ScrollLockOn F1>
     <Toggle>
     <SetPip WoW1 WoW2 WoW3 WoW4 WoW5>
     <Toggle>
     <SetPip WoW2 WoW1 WoW3 WoW4 WoW5>
     <Toggle>
     <SetPip WoW3 WoW1 WoW2 WoW4 WoW5>
     <Toggle>
     <SetPip WoW4 WoW1 WoW2 WoW3 WoW5> 
    <Toggle>
     <SetPip WoW5 WoW1 WoW2 WoW3 WoW4>
    
    
    
    
    
    
    
    
    //-----------------------------------------------------------
    // 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.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Q, E, R, F, C, v, Numpad0, Numpad1, Numpad2; ScrollLockOn LSHIFT R; ScrollLockOn LSHIFT E; ScrollLockOn LSHIFT C; ScrollLockOn LSHIFT  Q; ScrollLockOn LSHIFT  F>
    <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%>
                    <RestoreMousePos>
    Last edited by MiRai : 07-16-2019 at 07:14 PM Reason: [CODE] Tags

  2. #2

    Default

    Try using the code that Wubsite posted recently, It's working and easy to adjust.

    Source: https://www.dual-boxing.com/threads/...l=1#post418430


    Quote Originally Posted by Wubsie View Post
    Ohoyhoy.

    Took a bit since I don't use Hotkeynet anymore, but here's a slightly changed version that worked fine for me:

    https://pastebin.com/BMdTdzjN

    Code:
     //-----------------------------------------------------------
     // PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY. 
     //-----------------------------------------------------------
    <Hotkey ScrollLockOn Ctrl R>
    <If WinSizeIs "World of Warcraft" 470 265>
    <SendWinM "World of Warcraft">
    <RenameWin "World of Warcraft" HiddenDialogBox>
    <Else>
    <RenameWin "World of Warcraft" WoW1>
    <RenameWin "World of Warcraft" WoW2>
    <RenameWin "World of Warcraft" WoW3>
    <RenameWin "World of Warcraft" WoW4> 
     //-------------
     // SET PIP CONFIGURATION
     // Usage: <SetPip BigWindowName LittleWindowName>
     // This command is called by <Hotkey F1> which is defined below.
     //-------------
    <Command SetPip>
            <TargetWin %4%>
                    <SetWinSize 525 300>
                    <SetWinPos  1300 715>
        <TargetWin %2%>
            <SetWinSize 525 300>
            <SetWinPos  1300 415>
        <TargetWin %3%>
            <SetWinSize 525 300>
            <SetWinPos  1300 115>
        <TargetWin %1%>
            <SetWinSize 1920 1080>
            <SetWinPos 0 0>
        <TargetWin %2%>
            <SetForegroundWin>
            <UpdateWin>
        <TargetWin %3%>
            <SetForegroundWin>
            <UpdateWin>
            <TargetWin %4%>
                    <SetForegroundWin>
                    <UpdateWin>
            <TargetWin %1%>
                    <SetWinRegion 1300 115 525 900>
                    <SetForegroundWin>
     //------------
     // TOGGLE PIP CONFIG WITH HOTKEY
     //------------
     <Hotkey ScrollLockOn F1>
     <Toggle>
     <SetPip WoW1 WoW2 WoW3 WoW4>
     <Toggle>
     <SetPip WoW2 WoW1 WoW3 WoW4>
     <Toggle>
     <SetPip WoW3 WoW1 WoW2 WoW4>
     <Toggle>
     <SetPip WoW4 WoW1 WoW2 WoW3> 
     
     // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
     //---------
    <Command LaunchAndRename>
       <SendPC %1%>
            <Run "C:\World of Warcraft\_retail_\WoW.exe">
        <wait 1500>
            <RenameWin "World of Warcraft" PreDummyBox>
            <RenameWin "World of Warcraft" %2%>
    
            
     //----------
     // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
     //----------
     <Hotkey ScrollLockOn Alt Ctrl L>
     <LaunchAndRename Local WoW1>
     <RemoveWinFrame>
     <LaunchAndRename Local WoW2>
     <RemoveWinFrame>
     <LaunchAndRename Local WoW3>
     <RemoveWinFrame>
     <LaunchAndRename Local WoW4>
     <RemoveWinFrame>
    
     
     //-----------
     // 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>
     
     // HOTKEYS
     //--------------
    
    //FIRST, WE DEFINE A KEYLIST CALLED MYLIST INSTEAD OF USING HOTKEYS
    
     <KeyList MyList A-Z, 0-9, Period, Comma, Oem1, Oem2, NumPad0-Numpad9, NumPadEnter, F2-F12, Esc except W, A, S, D, J, Q, E, X>
     <KeyList MyList2 A-Z, 0-9, Plus, Minus, F1-F12, NumLock, except W, A, S, D, f1, E, Q>
     <Hotkey ScrollLockOn MyList; ScrollLockOn Shift MyList2>
     <SendLabel w1, w2, w3, w4>
     <Key %Trigger%>
    // F1 HAS BEEN DELETED FROM THE LIST SINCE IT'S ALREADY DEFINED. Q, E AND X HAVE BEEN ADDED TO THE EXCLUDE
    
    
    
    
     //---------------
     // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
     // ADD MORE KEYS IF YOU WANT. 
     //---------------
    <KeyList MoveSet up, down, left, right, X, Space>
    <MovementHotkey ScrollLockOn MoveSet>
    <SendLabel w1, w2, w3, w4> 
    <Key %Trigger%>
    // SPACE AND X ADDED TO THE MOVEMENT KEYS. ADD Q AND E IF YOU WANT THOSE KEYS TO PASS TO SLAVES FOR STRAFING.
    
    
    
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Alt LButton, MButton, RButton, Button4, Button5>
       <SendLabel w1, w2, w3, w4> 
          <ClickMouse %TriggerMainKey%>
    //-----------------------------------------------------------
    
    
    // USE PAUSE TO TOGGLE BROADCASTING ON AND OFF WHEN TYPING IN THE CHAT WINDOW OR ANYTIME YOU DON'T WANT EVERYONE RESPONDING TO KEYSTROKES.
    
    //------------------
    //TOGGLE HKN MUTE
    //------------------
    <hotkey Pause>
        <sendpc local>
            <ToggleHotkeys>
    
    
     //-----------------------------------------------------------
     // 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> 
     <ClickMouse %TriggerMainKey%>
    Here's it working just fine for me with 4 clients. Swapping seems to work too.
    https://youtu.be/0i2-CFbDlUg

    Seems to me the issue was relating to the hidden windows that open with every single instance of WoW nowadays. I believe your script was trying to place those in to the PiP fields instead of the actual game clients. I could be wrong though, but whatever it is, I seem to have fixed it.

    Remember to change the WoW path back to match your installation.

    PS. There were some dual definitions for hotkeys and movement hotkeys. I got rid of those. Hopefully there wasn't anything else you specifically made in those definitions. :3

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •