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

    Default Hotkey script problems.

    hey all I'm needing some help. I used the Hotkey how to to setup a launch and rename script and all it did was loop opening new ones over and over. Anyone know where the problem lies?


    //-----------------------------------------------------------
    // 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 "c:\Program Files\WoW5\WoW.exe">
    <Run "E:\WoW1\WoW.exe">
    <Run "E:\WoW2\WoW.exe">
    <Run "E:\WoW3\WoW.exe">
    <Run "E:\WoW4\WoW.exe">
    <RenameTargetWin %2%>

    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Alt Ctrl L>
    <LaunchAndRename Local WoW1>
    <LaunchAndRename Local WoW2>
    <LaunchAndRename Local WoW3>
    <LaunchAndRename Local WoW4>
    <LaunchAndRename Local WoW5>

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

  2. #2

    Default

    I use :
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH A COPY OF WOW In Different Locations.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
    <SendPC %1%>
    <Run "c:\Games\World of Warcraft\WoW.exe">
    <RenameTargetWin %2%>
    <RemoveWinFrame>
    <Wait 1400>
    <Text %3%>
    <Wait 1400>
    <Key Tab>
    <Wait 1400>
    <Text %4%>
    <Wait 1400>
    <Key Enter>




    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH 5 WOW'S.
    //-----------------------------------------------------------
    <Hotkey Shift Alt Ctrl L>
    <LaunchAndRename Local w1 "Account1" "password">
    <LaunchAndRename Local w2 "Account2" "password">
    <LaunchAndRename Local w3 "Account3" "password">
    <LaunchAndRename Local w4 "Account4" "password">
    <LaunchAndRename Local w5 "Account5" "password">

    <Label wow1 Local SendWinSF w1>
    <Label wow2 Local SendWinSF w2>
    <Label wow3 Local SendWinSF w3>
    <Label wow4 Local SendWinSF w4>
    <Label wow5 Local SendWinSF w5>

  3. #3

    Default

    Quote Originally Posted by Boss View Post
    hey all I'm needing some help. I used the Hotkey how to to setup a launch and rename script and all it did was loop opening new ones over and over. Anyone know where the problem lies?
    It's not looping. Loops are frowned on here, so I want to be accurate about this.

    What exactly is the mistake? You wrote "LaunchAndRename" five times in one place. That calls the subroutine five times. Then inside the subroutine you wrote "Run" five times. That launches WoW five times.

    5 x 5 = 25, so HotkeyNet tries to open WoW 25 times.

    That's not a loop. When you write something by hand five times, you're just writing something by hand five times.
    �Author of HotkeyNet and Mojo

  4. #4

    Default

    Ok thanks for the response. So i would change it to this:

    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Alt Ctrl L>
    <LaunchAndRename Local WoW1>


    I'm wanting it to open the 5 wows from the different folder.

    Never mind think I figured it out
    Last edited by Boss : 08-29-2009 at 03:31 PM

  5. #5

    Default

    Quote Originally Posted by Boss View Post
    I'm wanting it to open the 5 wows from the different folder.
    Do you mean you want five WoWs and each of them should be from a different folder?
    �Author of HotkeyNet and Mojo

  6. #6

    Default

    Yes this is what I came up with should work?

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

    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Alt Ctrl L>
    <LaunchAndRename Local "c:\Program Files\WoW5\WoW.exe"WoW5>
    <LaunchAndRename Local "e:\WoW4\WoW.exe"WoW4>
    <LaunchAndRename Local "e:\WoW3\WoW.exe"WoW3>
    <LaunchAndRename Local "e:\WoW2\WoW.exe"WoW2>
    <LaunchAndRename Local "e:\WoW1\WoW.exe"WoW1>

    <ResizeAndPosition Local WoW1 1300 1050 0 0>
    <ResizeAndPosition Local WoW2 380 262 1300 0>
    <ResizeAndPosition Local WoW3 380 262 1300 262>
    <ResizeAndPosition Local WoW4 380 262 1300 524>
    <ResizeAndPosition Local WoW5 380 262 1300 784>


    Thats what I was looking for.
    Last edited by Boss : 08-29-2009 at 03:43 PM

  7. #7

    Default

    Yep, that's the right idea. Grats. You might need spaces between the quotation marks and the names of windows in the hotkey -- I forget if they are necessary.
    �Author of HotkeyNet and Mojo

  8. #8

    Default

    Hey Freddie have another question (working step by step adding things) got them launching fine and resizing now I'm trying to get them to switch with the F keys. This how I have it:

    code is in next reply made some headway.

    I'm wanting if I can them yo open like normal resized and then be able to F through them.
    Last edited by Boss : 08-29-2009 at 05:33 PM

  9. #9

    Default

    Thats doing what I want just errors when started up have to hit a F1 to get all screens open right after start up.

    Code:
     //-----------------------------------------------------------
    // SUBROUTINE TO RESIZE AND POSITION WINDOWS
    //-----------------------------------------------------------
    
    
    <Command ResizeAndPosition>
       <SendPC Local>
           <SendWin %5%>
              <SetWinSize 1300 1050>
              <SetWinPos 0 0>
              <SetWinRegion 1300 0 380 262>
              <SetWinRegion 1300 262 380 262>
              <SetWinRegion 1300 524 380 262>
              <SetWinRegion 1300 784 380 262>
          <SendWinM %2%>
              <SetWinSize 380 262>
              <SetWinPos 1300 0>     
          <SendWinM %3%>
              <SetWinSize 380 262>
              <SetWinPos 1300 262>     
          <SendWinM %4%>
              <SetWinSize 380 262>
              <SetWinPos 1300 524>     
         <SendWinM %1%>
               <SetWinSize 380 262>
               <SetWinPos 1300 784>
    
    //----------------------------------------------------------------
    //Window Switching
    //----------------------------------------------------------------
    <Hotkey F1>
       <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
    <Hotkey F2>
       <ResizeAndPosition WoW2 WoW5 WoW3 WoW4 WoW1>
    <Hotkey F3>
       <ResizeAndPosition WoW3 WoW2 WoW5 WoW4 WoW1>
    <Hotkey F4>
       <ResizeAndPosition WoW4 WoW2 WoW3 WoW5 WoW1>
    <Hotkey F5>
       <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
          <SendPC %1%>
          <Run %2%>
          <RenameTargetWin %3%>
          <RemoveWinFrame>
    
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Alt Ctrl L>
    <LaunchAndRename Local "c:\Program Files\WoW5\WoW.exe"WoW5>
    <LaunchAndRename Local "e:\WoW4\WoW.exe"WoW4>
    <LaunchAndRename Local "e:\WoW3\WoW.exe"WoW3>
    <LaunchAndRename Local "e:\WoW2\WoW.exe"WoW2>
    <LaunchAndRename Local "e:\WoW1\WoW.exe"WoW1>
    
    
    <ResizeAndPosition Local WoW1>
    <ResizeAndPosition Local WoW2>
    <ResizeAndPosition Local WoW3>
    <ResizeAndPosition Local WoW4>
    <ResizeAndPosition Local WoW5>
    This is just moving main through the order and then only the first to the main screen need help with that.
    Last edited by Boss : 08-29-2009 at 05:36 PM

Posting Rules

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