I wanted to write a fishing bot for the new RPG project gta 5 on rage platform
I sat for a while, read, tried to write a little something and at the end I ran into a problem
There is a new type of captcha on the server when fishing, which I tried to guess with a script, but unsuccessfully ...
I tried to do everything through if else, I wanted that when the slider went beyond the permissible coordinates on one and the other side, the script would automatically press the corresponding buttons, but nothing came of it, help plz, for help I'm ready to give a personal account in wot or throw a couple of rubles on kiwi)
Here is the video in the video where there is that captcha
And here is my bot's code:
Code: Select all
Numpad2:: Reload
Numpad4:: Pause, Off
Numpad3:: Pause, On
Numpad1::
Loop{
label1: ; Нажатие на Е на месте рыбалки
BlockInput, SendAndMouse
SendInput, {E}
Label2: ; Выбор наживки и закидка удочки
Click Left 976, 602,
Sleep, 4000
Click Left 960, 570,
Label3: ; Проверка на клёв
PixelGetColor, color, 1010, 241, alt
Var40 = %color%
If ( Var40 = 0x72CC72 )
{
SoundBeep, 750, 700
BlockInput, SendAndMouse
SendInput, {E}
Goto, Label4
}
Else
{
Goto, Label3
}
Label4: ; Розгадка каптчи
PixelGetColor, leftcolor, 839, 540, rgb
Var33 = %leftcolor%
If ( Var33 != 0xBA2830 )
{
SendInput, {Q Down}
Sleep, 6000
SendInput, {Q Up}
Goto, Label5
}
Else
{
Goto, Label4
}
Label5:
PixelGetColor, rightcolor, 904, 541, RGB
Var35 = %rightcolor%
If ( Var35 = 0xBA2830 )
{
SendInput, {E Down}
Sleep, 5000
SendInput, {E Up}
}
Goto, Label4
Break
}