#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F1:: ; Скрипт запускается при нажатии F1
Loop
{
; W - вперед
Send, {w down}
Sleep, 2000
Send, {w up}
Sleep, 2000
; D - вправо
Send, {d down}
Sleep, 2000
Send, {d up}
Sleep, 2000
; S - назад
Send, {s down}
Sleep, 2000
Send, {s up}
Sleep, 2000
; A - влево
Send, {a down}
Sleep, 2000
Send, {a up}
Sleep, 2000
}
return
F2::ExitApp ; Скрипт останавливается при нажатии F2