Close
Showing results 1 to 2 of 2

Hybrid View

  1. #1

    Default Formations with autohotkey (want to leave 'main' char out)

    I am trying to do this setup:

    x-y-x
    -x-x-

    I used the code from the Formations guide, last post in the thread, and modified it abit...

    [code:1]
    F8::
    ControlSend,,{up down}, ahk_id %wowid2%
    ControlSend,,{9 down}, ahk_id %wowid2%
    ControlSend,,{up down}, ahk_id %wowid3%
    ControlSend,,{0 down}, ahk_id %wowid3%
    ControlSend,,{9 down}, ahk_id %wowid4%
    ControlSend,,{0 down}, ahk_id %wowid5%
    Sleep, 250
    ControlSend,,{9 up}, ahk_id %wowid4%
    ControlSend,,{0 up}, ahk_id %wowid5%
    Sleep, 250
    ControlSend,,{up up}, ahk_id %wowid2%
    ControlSend,,{9 up}, ahk_id %wowid2%
    ControlSend,,{up up}, ahk_id %wowid3%
    ControlSend,,{0 up}, ahk_id %wowid3%
    return[/code:1]

    The problem is I have no idea how autohotkey picks windows. I want my main's window to be wowid1, as I can't just randomly switch windows because the resolution on the non-main windows is teeny. But wowid1 always ends up being my warlock no matter what I do, it's freaking weird.

    I was looking in the Autohotkey guide and I noticed Sorn's huge script and how it checks for a main and the clone, and am comtemplating on how to go about expanding it to include a 5-wow template.

    If anyone has already done this or knows something about how Autohotkey picks windows that I do not, please reply!

    And thanks a ton for putting up with all the questions guys, this forum is amazing =)

  2. #2

    Default

    Hmm, I think I figured it out: [EDIT: Found a problem with it, this is corrected version]

    [code:1]WinGet, wowid, List, World of Warcraft


    WinMinimize, ahk_id %wowid1%
    WinMinimize, ahk_id %wowid2%
    WinMinimize, ahk_id %wowid3%
    WinMinimize, ahk_id %wowid4%
    WinMinimize, ahk_id %wowid5%



    WinActivate, ahk_id %wowid1%

    MsgBox, 4,, Is this your WOW Main window? (press Yes or No)

    IfMsgBox Yes
    {
    idMain = %wowid1%
    idA = %wowid2%
    idB = %wowid3%
    idC = %wowid4%
    idD = %wowid5%

    }
    else IfMsgBox No
    {

    WinMinimize, ahk_id %wowid1%
    WinMinimize, ahk_id %wowid2%
    WinMinimize, ahk_id %wowid3%
    WinMinimize, ahk_id %wowid4%
    WinMinimize, ahk_id %wowid5%

    WinActivate, ahk_id %wowid2%
    MsgBox, 4,, Is this your WOW Main window? (press Yes or No)

    IfMsgBox Yes
    {
    idMain = %wowid2%
    idA = %wowid1%
    idB = %wowid3%
    idC = %wowid4%
    idD = %wowid5%
    }
    else IfMsgBox No
    {

    WinMinimize, ahk_id %wowid1%
    WinMinimize, ahk_id %wowid2%
    WinMinimize, ahk_id %wowid3%
    WinMinimize, ahk_id %wowid4%
    WinMinimize, ahk_id %wowid5%

    WinActivate, ahk_id %wowid3%
    MsgBox, 4,, Is this your WOW Main window? (press Yes or No)

    IfMsgBox Yes
    {
    idMain = %wowid3%
    idA = %wowid1%
    idB = %wowid2%
    idC = %wowid4%
    idD = %wowid5%
    }
    else IfMsgBox No
    {
    WinMinimize, ahk_id %wowid1%
    WinMinimize, ahk_id %wowid2%
    WinMinimize, ahk_id %wowid3%
    WinMinimize, ahk_id %wowid4%
    WinMinimize, ahk_id %wowid5%

    WinActivate, ahk_id %wowid4%
    MsgBox, 4,, Is this your WOW Main window? (press Yes or No)

    IfMsgBox Yes
    {
    idMain = %wowid4%
    idA = %wowid1%
    idB = %wowid2%
    idC = %wowid3%
    idD = %wowid5%
    }
    else IfMsgBox No
    {
    WinMinimize, ahk_id %wowid1%
    WinMinimize, ahk_id %wowid2%
    WinMinimize, ahk_id %wowid3%
    WinMinimize, ahk_id %wowid4%
    WinMinimize, ahk_id %wowid5%

    WinActivate, ahk_id %wowid5%
    MsgBox, 4,, Is this your WOW Main window? (press Yes or No)

    IfMsgBox Yes
    {
    idMain = %wowid5%
    idA = %wowid1%
    idB = %wowid2%
    idC = %wowid3%
    idD = %wowid4%
    }
    else IfMsgBox No
    {
    MsgBox There was an issue determining the main window, please reload script or load another.

    }
    }
    }
    }
    }
    [/code:1]

Similar Threads

  1. can't xfer char to my main account
    By Shadraak in forum General WoW Discussion
    Replies: 0
    Last Post: 11-12-2008, 05:02 PM
  2. How to set CPU affinity for my main char
    By incendie22 in forum New Multi-Boxers & Support
    Replies: 4
    Last Post: 10-22-2008, 11:03 AM
  3. Autohotkey Befehl für Char Movement
    By Extreme in forum German
    Replies: 11
    Last Post: 05-04-2008, 07:11 AM
  4. Main char switch
    By Zell in forum German
    Replies: 3
    Last Post: 05-01-2008, 12:29 PM
  5. Wich char as main ?
    By Zakarha in forum General WoW Discussion
    Replies: 5
    Last Post: 11-30-2007, 05:52 AM

Posting Rules

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