1

Тема: AHK:Помогите Дописать код GTA5RP

нужно Дописать кот чтобы бот работал когда игра свернута
вот тот самый код
Помогите пожалуйста кому не трудно
и опишите то что вы сделали пожалуйста


#NoTrayIcon
#CommentFlag //
WinActivate Rage Multiplayer
Gui, Add, Button, x1 y150 w100 h30 gFishing , Hotkeys
Gui, Add, Button, x150 y50 w0 h30 gDonate , Donate
Gui, Add, Button, x90 y105 w120 h43 gSpeed , Clicker speed
Gui, Add, Button, x550 y100 w100 h30 gFunPay , FunPay
Gui, Add, Text, x600 y330 w280 h50 , GTA5RP
Gui, Add, Text, x1 y1 w200 h30 , THANK YOU FOR YOUR PURCHASE!!.
Gui, Show, w650 h350, GTA5RP BOT by Daniel
Gui, Color, 7c7c7c
return
F5:: Reload
F9:: Pause, Off
F8:: Pause, On
F7::
Loop{
if faster := 1
{
Label1:
BlockInput, SendAndMouse
SendInput, {sc17}
BlockInput, Default
sleep 500
PixelGetColor, color, 1580, 440, alt
Var1 = %color%
if ( Var1 = 0x2A68FC  ) | ( Var1 = 0x1C5FFC  ) | ( Var1 = 0x1C60FC  ) | ( Var1 = 0x1C61FC  )
{
SoundBeep, 750, 500
BlockInput, SendAndMouse
SendInput, {F8}
BlockInput, Default
Goto, Label1
}
BlockInput, SendAndMouse
Click Left 550,394 ,
sleep, 500
Click Left 550, 520,
BlockInput, Default
sleep, 1000
PixelGetColor, color, 786, 484, alt
Var1 = %color%
if ( Var1 = 0x221E1B )
{
sum:= 0
i:=1
while ( i < 7 )
{
ImageSearch, xp, yp, 895, 500, 922, 535, *170 %A_ScriptDir%\img\%i%.png
If ( xp > 0 )
{
sum:= sum + i
break
}
i++
}
i:=1
while ( i < 7 )
{
ImageSearch, xp, yp, 943, 500, 973, 535, *170 %A_ScriptDir%\img\%i%.png
If ( xp > 0 )
{
sum:= sum + i
break
}
i++
}
ImageSearch, xp, yp, 785, 550, 1140, 575, *170 %A_ScriptDir%\imgb\%sum%.png
If xp > 0
{
BlockInput, SendAndMouse
MouseMove, %xp%, %yp%
sleep, 2000
Click, %xp%, %yp%
BlockInput, Default
}
}
sleep, 10000
Label2:
MouseGetPos, 1051, 898
PixelGetColor, color, 1051, 898, alt
Var1 = %color%
if ( Var1 = 0x0000FF  )
{
Loop 3
{
Send {Click}
sleep 50
}
Goto, Label2
}
else
{
MouseGetPos, 624, 1024
PixelGetColor, color, 624, 1024, alt
Var1 = %color%
if ( Var1 = 0x00FF4E  )
{
Goto, Label1
}
else
{
Goto, Label2
}
}
}
if speed := 2
{
Label22:
BlockInput, SendAndMouse
SendInput, {sc17}
sleep, 2000
PixelGetColor, color, 1580, 440, alt
Var10 = %color%
if ( var10 = 0x2A68FC  ) | ( var10 = 0x1C5FFC  ) | ( var10 = 0x1C60FC  ) | ( var10 = 0x1C61FC  )
{
SoundBeep, 750, 500
SendInput, {Numpad3}
BlockInput, Default
}
else
{
Click Left 550,394 ,
Random, rand20, 50, 100
sleep, 200+rand20
Click Left 550, 520,
sleep, 5000
PixelGetColor, answer, 812, 492
if ( answer = 0xFFFFFF)
{
SoundBeep, 750, 500
sleep, 1000
}
Label33:
MouseGetPos, 1051, 898
Label55:
PixelGetColor, color, 1051, 898, alt
Var20 = %color%
if ( var20 = 0x0000FF  )
{
Random, rand3, 20, 40
Send {Click}
sleep 70+rand3
Send {Click}
sleep 70+rand3
Send {Click}
sleep 70+rand3
Send {Click}
sleep 40+rand3
goto, Label55
}
else{
PixelGetColor, color, 624, 1024, alt
PixelGetColor, uved, 1294, 1041, slow
Var30 = %color%
if ( var30 = 0x00FF4E or uved = 0x00FF4E )
{
Goto, Label22
}
else
{
Goto, Label33
}
}
}
}
}

return
return
Fishing:
MsgBox, 0,, Activation: F7 | Pause ON: F8 | Pause OFF: F9 | Reload: F5
return
Speed:
Gui, 2: Add, Button, x15 y20 w100 h30 gSlow , slower
Gui, 2: Add, Button, x185 y20 w100 h30 gFast , faster
Gui, 2: Add, Button, x110 y60 w80 h20 gInfo , Info
Gui, 2: Show, w300 h100, clicker speed
Gui, 2: Color, 7c7c7c
return
Slow:
speed := 2
sleep 100
Gui, 2: Hide
return
Fast:
speed := 1
sleep 100
Gui, 2: Hide
return
Info:
MsgBox, 0,, »Use slow mode for sea (lake) and pier fishing for maximum safety. \ Fast mode that you can safely use in the ocean!)
return

return

return
FunPay:
Run -
return
Donate:
Run -
return
GuiClose:
F2::
ExitApp

2

Re: AHK:Помогите Дописать код GTA5RP

Оформите пост согласно правилам.

Win10x64, AHK v1.1.37.01 (Unicode 64-bit) | AHK-Wiki | Переменные и выражения | RegEx101