Bliss1 Posted April 4, 2022 Share Posted April 4, 2022 Hello all! I am extremely new to AutoIt, and I have a task that I think this may be the perfect programming language for. I am a mechanical engineer by trade, so before I get into this... I really am not looking for advance instruction on this. Just a little guidance and feedback would be great. Thanks in advance! Problem: I currently play a game that I would love to be able to AFK (away from keyboard) play while I am at work, out in the town running errands, or any and all similar. Being able to AFK would allow me to continue to grow my account when I don't necessarily have a lot of time to dedicate it. With that being said, the game pops up with a CAPTCHA every so often to prevent this. The CAPTCHA I have realized is the same exact image every time amongst several of the same incorrect images [9x6 square of red objects (all same) with one green (same every time)] where the green is the target I'm aiming for. I thought this would be a very intuitive script to write, but that was my first mistake as an engineer to think anything that seems easy would be easy ;). I have written the following script: Global $Paused HotKeySet("{ESC}", "Terminate") HotKeySet("p", "Pause") Sleep(5000) $iColor = 0x547155 While 1 $Coord = PixelSearch(0, 0, 1527, 861, $iColor) If Not @error Then Send("z") ;set to autoclicker keybind Sleep(600) MouseMove($Coord[0],$Coord[1]) sleep(1000) MouseClick("left") Sleep(1000) Send("z") ;set to autoclicker keybind Sleep(3000) Else Sleep(4000) EndIf Sleep(15) WEnd - A couple notes. The pixel search variables are my screen size that I found from the AutoIt Window Info executable file, and the color code at the top is the green I'm shooting for. The rest is my attempt to go back to what I was doing before the CAPTCHA showed. Needless to say, this way a failure lol. Help me out AutoIt community! Thank you in advance =). Link to comment Share on other sites More sharing options...
Earthshine Posted April 4, 2022 Share Posted April 4, 2022 Game automation is not discussed on the forum per the forum rules My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2022 Developers Share Posted April 4, 2022 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team Bliss1 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 4, 2022 Developers Share Posted April 4, 2022 Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts