AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wow simple movement scripts

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Moo
Guest





PostPosted: Tue May 13, 2008 9:23 pm    Post subject: wow simple movement scripts Reply with quote

Code:
Forward = 0
WinGet, wowid, List, World of Warcraft
WinGet, Active, ID, A

if(%Active% = %wowid1%)
{
   Inactive = %wowid2%
}
else
{
   Inactive = %wowid1%
}

Space::
KeyWait, Space, D
ControlSend,, {Space}, ahk_id %wowid1%
ControlSend,, {Space}, ahk_id %wowid2%
Return

Backspace::
KeyWait, Backspace, D
ControlSend,, s, ahk_id %Inactive%
Return

NumPad2::
KeyWait, NumPad2, D
if(%forward% = 0)
{
ControlSend,, {s down}, ahk_id %Inactive%
Forward += 1
}
else
{
ControlSend,, {s up}, ahk_id %Inactive%
Forward -= 1
}
Return

NumPad4::
KeyWait, NumPad4, D
if(%forward% = 0)
{
ControlSend,, {q down}, ahk_id %Inactive%
Forward += 1
}
else
{
ControlSend,, {q up}, ahk_id %Inactive%
Forward -= 1
}
Return

NumPad6::
KeyWait, NumPad6, D
if(%forward% = 0)
{
ControlSend,, {e down}, ahk_id %Inactive%
Forward += 1
}
else
{
ControlSend,, {e up}, ahk_id %Inactive%
Forward -= 1
}
Return

NumPad8::
KeyWait, NumPad8, D
if(%forward% = 0)
{
ControlSend,, {w down}, ahk_id %Inactive%
Forward += 1
}
else
{
ControlSend,, {w up}, ahk_id %Inactive%
Forward -= 1
}
Return


I was looking for something like this but couldn't find any, so I studied some written scripts and composed my own
what this does -
space is sent to both clients
backspace is sent to the inactive client as one single stroke of s
numpad 2,4,6,8 is sent to the inactive client as s,q,e,w
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group