Code:
; -------------------------------
; Movement Keys
; -------------------------------
~w::
While GetKeyState("w","P") = 1
{
ControlSend,, {w down}, ahk_id %idClone%
}
If GetKeyState("w","P") = 0
{
ControlSend,, {w up}, ahk_id %idClone%
}
return
~a::
While GetKeyState("a","P") = 1
{
ControlSend,, {a down}, ahk_id %idClone%
}
If GetKeyState("a","P") = 0
{
ControlSend,, {a up}, ahk_id %idClone%
}
return
~s::
While GetKeyState("s","P") = 1
{
ControlSend,, {s down}, ahk_id %idClone%
}
If GetKeyState("s","P") = 0
{
ControlSend,, {s up}, ahk_id %idClone%
}
return
~d::
While GetKeyState("d","P") = 1
{
ControlSend,, {d down}, ahk_id %idClone%
}
If GetKeyState("d","P") = 0
{
ControlSend,, {d up}, ahk_id %idClone%
}
return
~q::
While GetKeyState("q","P") = 1
{
ControlSend,, {q down}, ahk_id %idClone%
}
If GetKeyState("q","P") = 0
{
ControlSend,, {q up}, ahk_id %idClone%
}
return
~e::
While GetKeyState("e","P") = 1
{
ControlSend,, {e down}, ahk_id %idClone%
}
If GetKeyState("e","P") = 0
{
ControlSend,, {e up}, ahk_id %idClone%
}
return
Connect With Us