помогите сделать луа

Nimaque

Новичок
Автор темы
1
0
Версия MoonLoader
.027.0-preview
помогите сделать этот ахк на луа

#NoTrayIcon
#SingleInstance force
#NoEnv
ListLines Off
#If WinActive("ahk_exe gta_sa.exe")
F11::
if WinActive("ahk_exe gta_sa.exe")
Reload
DllCall("Sleep",UInt,50)
return
t::
if WinActive("ahk_exe gta_sa.exe")
Suspend, On
ControlSend, , {t}, ahk_class Grand theft auto San Andreas
return
Enter::
Suspend, Off
ControlSend, , {enter}, ahk_class Grand theft auto San Andreas
return
space::
{
if WinActive("ahk_exe gta_sa.exe")
ControlSend, , {e down}, ahk_class Grand theft auto San Andreas
Sleep, 0
ControlSend, , {space down}, ahk_class Grand theft auto San Andreas
Sleep, 5
ControlSend, , {q down}, ahk_class Grand theft auto San Andreas
Sleep, 10
ControlSend, , {e up}, ahk_class Grand theft auto San Andreas
Sleep, 0
ControlSend, , {space up}, ahk_class Grand theft auto San Andreas
Sleep, 2
ControlSend, , {space down}, ahk_class Grand theft auto San Andreas
Sleep, 0
ControlSend, , {q up}, ahk_class Grand theft auto San Andreas
Sleep, 0
ControlSend, , {space up}, ahk_class Grand theft auto San Andreas
While GetKeyState("space","p")
if WinActive("ahk_exe gta_sa.exe")
{
ControlSend, , {space down}, ahk_class Grand theft auto San Andreas
Random, rand, 1, 30
Sleep, %rand%
ControlSend, , {space up}, ahk_class Grand theft auto San Andreas
Sleep, 1
}
}
space up::
{
ControlSend, , {space up}, ahk_class Grand theft auto San Andreas
}
return



хочу когда я нажаиаю на space скролит (q и e)