Code: Select all
ControlSend,, {w}, ahk_id %id%
ControlSend,, {w}, ahk_id %id%
ControlSend,, {w}, ahk_id %id%
Sleep, 250
ControlClick,, ahk_id %id%,,,, NA
wTitle = ahk_id %id%
ControlSend,, {a down}, %wTitle%
start := A_TickCount
While (A_TickCount - start < 16500)
Click
ControlSend,, {a up}, %wTitle%
ControlClick,, ahk_id %id%,,,, NA
Sleep, 250
ControlSend,, {w}, ahk_id %id%
ControlSend,, {w}, ahk_id %id%
ControlSend,, {w}, ahk_id %id%
Sleep, 250
ControlClick,, ahk_id %id%,,,, NA
wTitle = ahk_id %id%
ControlSend,, {d down}, %wTitle%
start := A_TickCount
While (A_TickCount - start < 16500)
Click
ControlSend,, {d up}, %wTitle%
}