Log in

View Full Version : moving in AHK



link884
01-31-2008, 08:35 PM
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

Wilbur
02-01-2008, 07:24 AM
I take it you haven't read many of the posts or stickes.

As such my answer is going to be short and sweet.

/follow

elo
02-01-2008, 08:16 AM
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.

Heregharus
02-02-2008, 03:43 PM
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.

Wilbur
02-04-2008, 05:55 AM
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.