Close
Showing results 1 to 4 of 4
  1. #1

    Default Swapping windows ingame with HotKeyNet

    Hi,

    I was doing some HKN script editing trying to make my WoW multiboxing little nicer. I just want to be safe and ask someone more experienced if this script is safe and doesn't violate Blizzard rules in any way since im little paranoid.

    My main goal is to be able to swap and resize game windows whenever I need without doing it manually with my mouse.

    Currently running 8-box with 1 big window and 7 small on one display (my "off-screen" that I'm using for games).

    Code:
    <Hotkey ScrollLockOn Alt F1>
    <Targetwin WoW1>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F2>
    <Targetwin WoW2>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW1>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F3>
    <Targetwin WoW3>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F4>
    <Targetwin WoW4>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F5>
    <Targetwin WoW5>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F6>
    <Targetwin WoW6>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F7>
    <Targetwin WoW7>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW8>
    <SetwinRect -320 720 320 180>
    
    <Hotkey ScrollLockOn Alt F8>
    <Targetwin WoW8>
    <SetwinRect -1920 0 1600 900>
    <Targetwin WoW2>
    <SetwinRect -1920 900 320 180>
    <Targetwin WoW3>
    <SetwinRect -1600 900 320 180>
    <Targetwin WoW4>
    <SetwinRect -1280 900 320 180>
    <Targetwin WoW5>
    <SetwinRect -960 900 320 180>
    <Targetwin WoW6>
    <SetwinRect -640 900 320 180>
    <Targetwin WoW7>
    <SetwinRect -320 900 320 180>
    <Targetwin WoW1>
    <SetwinRect -320 720 320 180>
    
    Here is script for removing frames.
    
    <Hotkey ScrollLockOn Alt Ctrl 0>
    <Targetwin WoW1>
    <RemoveWinFrame>
    <Targetwin WoW2>
    <RemoveWinFrame>
    <Targetwin WoW3>
    <RemoveWinFrame>
    <Targetwin WoW4>
    <RemoveWinFrame>
    <Targetwin WoW5>
    <RemoveWinFrame>
    <Targetwin WoW6>
    <RemoveWinFrame>
    <Targetwin WoW7>
    <RemoveWinFrame>
    <Targetwin WoW8>
    <RemoveWinFrame>
    Not expert level, probably unnecessary long, but I made it somehow...
    Last edited by MiRai : 05-27-2020 at 10:55 AM Reason: Thread Prefix / [CODE] Tags

  2. #2
    Multiboxologist MiRai's Avatar
    Join Date
    Apr 2009
    Location
    Winter Is Coming
    Posts
    6815

    Default

    Quote Originally Posted by Oosna View Post
    I just want to be safe and ask someone more experienced if this script is safe and doesn't violate Blizzard rules in any way since im little paranoid.
    There's nothing to be paranoid about when creating a layout for your game clients.
    Do not send me a PM if what you want to talk about isn't absolutely private.
    Ask your questions on the forum where others can also benefit from the information.

    Author of the almost unknown and heavily neglected blog: Multiboxology

  3. #3

    Default

    I'm glad to hear this.
    Thank you so much

  4. #4

    Default

    To make it less "clunky"

    Code:
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
        <SendPC Local>
            <Run "Path to Wow.exe">
        <wait 1000>
        <RenameWin "World of Warcraft" PreDummyBox>
        <wait 1000>
        <RenameWin "World of Warcraft" %1%>
        <wait 1000>
    //-----------------------------------------------------------
    // RESIZE AND REPOSITION WINDOWS
    //-----------------------------------------------------------
    <Command ResizeAndPosition>
        <SendWinM %1%>
            <SetwinRect -1920 0 1600 900>
        <SendWinM %2%>
            <SetwinRect -1920 900 320 180>
        <SendWinM %3%>
            <SetwinRect -1600 900 320 180>
        <SendWinM %4%>
            <SetwinRect -1280 900 320 180>
        <SendWinM %5%>
            <SetwinRect -960 900 320 180>
        <SendWinM %6%>
            <SetwinRect -640 900 320 180>
        <SendWinM %7%>
            <SetwinRect -320 900 320 180>
        <SendWinM %8%>
            <SetwinRect -320 720 320 180>
    //-----------------------------------------------------------
    // HOTKEY TO RESIZE AND REPOSITION WINDOWS
    //-----------------------------------------------------------
    //Client 1
    <Hotkey ScrollLockOn Alt F1>
    <If WinDoesNotExist WoW1>
        <LaunchAndRename WoW1>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5 WoW6 WoW7 WoW8>
    //Client 2
    <Hotkey ScrollLockOn Alt F2>
    <If WinDoesNotExist WoW2>
        <LaunchAndRename WoW2>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5 WoW6 WoW7 WoW8>
    //Client 3
    <Hotkey ScrollLockOn Alt F3>
    <If WinDoesNotExist WoW3>
        <LaunchAndRename WoW3>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5 WoW6 WoW7 WoW8>
    //Client 4
    <Hotkey ScrollLockOn Alt F4>
    <If WinDoesNotExist WoW4>
        <LaunchAndRename WoW4>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5 WoW6 WoW7 WoW8>
    //Client 5
    <Hotkey ScrollLockOn Alt F5>
    <If WinDoesNotExist WoW5>
        <LaunchAndRename WoW5>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1 WoW6 WoW7 WoW8>
    //Client 6
    <Hotkey ScrollLockOn Alt F6>
    <If WinDoesNotExist WoW6>
        <LaunchAndRename WoW6>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW6 WoW2 WoW3 WoW4 WoW5 WoW1 WoW7 WoW8>
    //Client 7
    <Hotkey ScrollLockOn Alt F7>
    <If WinDoesNotExist WoW7>
        <LaunchAndRename WoW7>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW7 WoW2 WoW3 WoW4 WoW5 WoW6 WoW1 WoW8>
    //Client 8
    <Hotkey ScrollLockOn Alt F8>
    <If WinDoesNotExist WoW8>
        <LaunchAndRename WoW8>
            <RemoveWinFrame>
    <EndIf>
    <ResizeAndPosition WoW8 WoW2 WoW3 WoW4 WoW5 WoW6 WoW7 WoW1>
    This includes a run command that need to be edited to match the installation path for wow client. It also includes an IF statment that check if client window exists, if not it will launch a new client and rename the window.

    This is how I solved it, let me know if you have questions.

    Helpful tool for window layout config: http://www.slashfocus.ru/hotkeynet/w...layout-builder
    Last edited by silnas : 07-18-2020 at 06:44 PM Reason: Error in code part corrected

Posting Rules

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