- 4
- 0
Всем добрый вечер, хотел бы сделать ахк бота в фоновом режиме для гта 5 рп но не знаю как. Помогите пожалуйста!
Код -
Код -
#SingleInstance,Force
CoordMode, Mouse, Screen
if ( A_ScreenWidth != "1920" or A_ScreenHeight != "1080" ) {
MsgBox, Ðàçðåøåíèå âàøåãî ìîíèòîðà íå ñîâïàäàåò ñ íóæíûì.
ExitApp
return
}
gui, font, s9, Arial
Gui, Add, Text, cGreen, F4 - âêëþ÷èòü áîòà (âêëþ÷àòü ïåðåä êðàôòîì)`nF2 - ïåðåçàãðóçèòü áîòà
Gui, Add, Text, cRed, F3 - ýêñòðåííî çàêðûòü áîòà.`nF5 - âûêëþ÷èòü ïîñëå êðàôòà.
Gui, Show, xCenter yCenter w275 h95
return
GuiEscape:
GuiClose:
ExitApp
return
F2:: Reload
F3:: ExitApp
F5:: x:= "1"
F4::
x := "0"
Loop{
PixelGetColor, color_up1, 960, 840, RGB
PixelGetColor, color_up2, 964, 825, RGB
PixelGetColor, color_up3, 956, 825, RGB
if ( color_up1 = "0x000000" and color_up2 = "0x000000" and color_up3 = "0x000000" ) {
Send, {vk26}
sleep, 100
}
else
PixelGetColor, color_down1, 960, 825, RGB
PixelGetColor, color_down2, 965, 837, RGB
PixelGetColor, color_down3, 955, 837, RGB
if ( color_down1 = "0x000000" and color_down2 = "0x000000" and color_down3 = "0x000000" ) {
Send, {vk28}
sleep, 100
}
else
PixelGetColor, color_right1, 953, 832, RGB
PixelGetColor, color_right2, 966, 827, RGB
PixelGetColor, color_right3, 965, 837, RGB
if ( color_right1 = "0x000000" and color_right2 = "0x000000" and color_right3 = "0x000000" ) {
Send, {vk27}
sleep, 100
}
else
PixelGetColor, color_left1, 968, 833, RGB
PixelGetColor, color_left2, 954, 828, RGB
PixelGetColor, color_left3, 954, 836, RGB
if ( color_left1 = "0x000000" and color_left2 = "0x000000" and color_left3 = "0x000000" ) {
Send, {vk25}
sleep, 100
}
else if ( x = "1" ) {
break
}
else
Send, {vk45}
sleep, 1
}