I can't figure out the ahk bot (

Ask gaming related questions (AHK v1.1 and older)
Kritysha
Posts: 3
Joined: 16 Feb 2021, 05:11

I can't figure out the ahk bot (

Post by Kritysha » 16 Feb 2021, 05:19

Hi guys, I decided to get into ahk scripting a bit
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 :headwall:
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
}
Last edited by gregster on 16 Feb 2021, 05:23, edited 1 time in total.
Reason: Link fixed.
User avatar
mikeyww
Posts: 27064
Joined: 09 Sep 2014, 18:38

Re: I can't figure out the ahk bot (

Post by mikeyww » 16 Feb 2021, 06:13

As far as I know, circumventing captcha is not consistent with the forum's goals.
Kritysha
Posts: 3
Joined: 16 Feb 2021, 05:11

Re: I can't figure out the ahk bot (

Post by Kritysha » 16 Feb 2021, 10:11

@mikeyww
This is the section for working in the game, so I described the problem that concerns working in the game, everything seems to be correct)
gregster
Posts: 9056
Joined: 30 Sep 2013, 06:48

Re: I can't figure out the ahk bot (

Post by gregster » 16 Feb 2021, 10:46

I mean we have no general rules against cheating or botting in games (although we don't encourage them), so I wouldn't consider any clicking task in a game, based on basic image recognition (or PixelGetColor like above), a "captcha" (even if it's meant to check for a human), at least not in a strictly malicious sense (like for example, circumventing captchas to create spam accounts) - although, no doubt, cheating is not nice. If it's a serious captcha, it's no trivial task anyway. If it's trivial, I wouldn't call it a captcha anyway.

Circumventing captcha services that are used to secure registrations, posting or website logins in general, I would surely refuse (and I have done so before), but what I've seen by skimming the video, based on my understanding (which might be wrong), I would say this is permissible as game automation - which we allow. But of course no one is obligated to give requests like this any attention.
Kritysha
Posts: 3
Joined: 16 Feb 2021, 05:11

Re: I can't figure out the ahk bot (

Post by Kritysha » 16 Feb 2021, 10:50

Well, I just ask experienced people for help in this problem on the forum, since I've been racking my brains for the second week, and I can't figure it out ...
User avatar
mikeyww
Posts: 27064
Joined: 09 Sep 2014, 18:38

Re: I can't figure out the ahk bot (

Post by mikeyww » 16 Feb 2021, 10:58

Thanks for the details!
Post Reply

Return to “Gaming Help (v1)”