Close
Showing results 1 to 5 of 5

Thread: moving in AHK

  1. #1

    Default moving in AHK

    This is my code in AHK to move 2 characters on world of warcraft. just im having problems with it and the character which is following the player character is not moving correctly, i press w an the character moves forward, i press a an they both move left... eg. but unless im standing still and pressing A or D to turn, the secondary character goes offset in the wrong direction slightly. can any 1 have a look at my code an see if their is something wrong with it plz? (btw im new to this - the code iv made so far is by using the AHK guide).

    WinGet, wowid, List, World of Warcraft

    ~w::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {w Down}, ahk_id %wowid1%
    ControlSend, , {w Down}, ahk_id %wowid2%
    }
    Return

    ~w Up::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {w Up}, ahk_id %wowid1%
    ControlSend, , {w Up}, ahk_id %wowid2%
    }
    Return

    WinGet, wowid, List, World of Warcraft

    ~a::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {a Down}, ahk_id %wowid1%
    ControlSend, , {a Down}, ahk_id %wowid2%
    }
    Return

    ~a Up::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {a Up}, ahk_id %wowid1%
    ControlSend, , {a Up}, ahk_id %wowid2%
    }
    Return

    WinGet, wowid, List, World of Warcraft

    ~d::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {d Down}, ahk_id %wowid1%
    ControlSend, , {d Down}, ahk_id %wowid2%
    }
    Return

    ~d Up::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {d Up}, ahk_id %wowid1%
    ControlSend, , {d Up}, ahk_id %wowid2%
    }
    Return

    WinGet, wowid, List, World of Warcraft

    ~s::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {s Down}, ahk_id %wowid1%
    ControlSend, , {s Down}, ahk_id %wowid2%
    }
    Return

    ~s Up::
    #IfWinActive, World of Warcraft
    {
    ControlSend, , {s Up}, ahk_id %wowid1%
    ControlSend, , {s Up}, ahk_id %wowid2%
    }
    Return

  2. #2

    Default

    I take it you haven't read many of the posts or stickes.

    As such my answer is going to be short and sweet.
    Code:
    /follow
    Wilbur

  3. #3

    Default

    Yeah, what Wilbur's trying to say is that you can't get perfect synchronized movement with AHK or any method to my knowledge. The issue is game latency, all of those little half second differences in reaction.

    /follow is your best friend, you just have to learn to adapt your situations to benefit, and also break follow at the appropriate times. For instance when I'm doing... an instance... as I'm running up to the mob I'm going to tank I break follow on the 4 then pull back to them with my tank. If you hold aggro well then you don't have to worry about moving the alts at all.

    Now when you get into fights where the main target likes to move or the scenario forces you to move the alts (Shattered Halls first boss, Ramparts last boss, etc.) then strafing will come in VERY handy. Basically strafe out of the dmg zone, hit follow, then immediately hit S to break follow without actually moving forward much. Strafing > Moving back because backward movement is slow and strafe moves at run speed.

    The only place I really use my group rotate (A,D) is when I've got a runner that goes by the group. Since you only have to get them within a 180° arc then the slight differences in facing aren't a big deal. Then once the alt is handled repeat the above, follow, then hit S and you're lined up for the next one you're tanking.
    ~Elo of BlackHand (Alliance)
    (TBC Team) 1xPally, 4xShaman -> Elothyn(70), Eloshama(70), Eloshamb(70), Eloshamc(70), Eloshamd(70)
    (Wrath Team) 1xPally, 2x Shaman, 1xMage, 1xDruid -> Elothyn(74), Eloshama(74), Eloshamc(73), Elozaen(73), Elothune(73)
    (Alts) 1xPriest, 1xWarlock, 1xWarrior -> Elothin(70), Elozen(70), Elothan(70)

  4. #4

    Default Moving in AHK

    Sorry sorta a noob but how do you type in in the script ?( Like this?

    ~f::/follow

    #IfWinActive, World of Warcraft

    {

    ControlSend,, f, ahk_%wowid1%

    ControlSend,, f, ahk_%wowid2%

    }

    Thanks.

  5. #5

    Default

    No.

    NO NO NO NO NO.

    READ THE STICKIES.

    /follow is bound in a macro INSIDE WOW.

    Nothing to do with AHK.

    Read the Stickies.
    Wilbur

Similar Threads

  1. Moving. Again.
    By Mokoi in forum PvP Discussion
    Replies: 10
    Last Post: 06-10-2009, 03:38 AM
  2. Moving at the same time.
    By elevlol in forum Software Tools
    Replies: 1
    Last Post: 11-13-2008, 02:36 PM
  3. Moving around on a PvP server
    By Havelcek in forum PvP Discussion
    Replies: 13
    Last Post: 07-08-2008, 09:58 AM
  4. Moving in WoW
    By Captanplanet in forum New Multi-Boxers & Support
    Replies: 9
    Last Post: 05-29-2008, 01:47 PM
  5. Moving around
    By Slippy in forum New Multi-Boxers & Support
    Replies: 6
    Last Post: 05-01-2008, 12:35 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
  •