MyDelay:= ;Здесь писать задержку между сменой стороны ходьбы, 1000 = 1 сек
Loop
{
Random, Vector, 1, 4
if (Vector = 1)
{
Forward()
}
if (Vector = 2)
{
Back()
}
if (Vector = 3)
{
Left()
}
if (Vector = 4)
{
Right()
}
Sleep, MyDelay
}
;Moving Functions
Forward()
{
Send {W down}
Sleep, MyDelay
Send {W up}
}
Back()
{
Send {S down}
Sleep, MyDelay
Send {S up}
}
Left()
{
Send {A down}
Sleep, MyDelay
Send {A up}
}
Right()
{
Send {D down}
Sleep, MyDelay
Send {D up}
}