Moo Guest
|
Posted: Tue May 13, 2008 9:23 pm Post subject: wow simple movement scripts |
|
|
| 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 |
|