Hello all, I've been using a script that I made months ago for a game that I play. The script itself is very very simple. It's something along the lines of:
Loop{
attack commands
movement commands
}
However, I still have to be physically present (or at least check in every few minutes) because this game allows players to do a "bot check" on other players. I then have about 30s to fill out the captcha numbers or I get banned.
I want to automate this process. I did a little bit of digging around and I found out that what I was looking for was OCR. How do I implement this into my ahk script?
--
Additional info:
I found a captcha solver on YouTube which will solve captchas that you have a picture of in a specified folder. In order to use this, my script would have to take the following steps:
-detect the captcha
-take a screenshot
-crop out the captcha portion? (The captcha is always in the same position on the screen and is always the same size)
-save that picture (maybe via paint?) in the specified captcha folder
-run the program
-retrieve the numbers
-fill out the captcha in game
-hit "ok" on the captcha window in game
-reset my script
Would this be the best way to go about it? What are the alternatives?
How to implement OCR/captcha solver?
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Re: How to implement OCR/captcha solver?
Easy to do
Re: How to implement OCR/captcha solver?
:c how thoughmast4rwang wrote:Easy to do
Re: How to implement OCR/captcha solver?
I second this, I have a similar application for OCR and would prefer to implement it into a AHK script.
Anyone around that can point us in the right direction?
Anyone around that can point us in the right direction?
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: How to implement OCR/captcha solver?
Probably not worth the effort, if it's even possible.
Re: How to implement OCR/captcha solver?
I did this once for a game called runescape, it is somewhat easy if the text is always the same, in that game it was.
I saved all the text to png files 0-9 a-z, I then scanned the screen for every one of those files, saving each location in an array, then determined their position from eachother to piece the words together.
So if I found the letter T and A and the distance bewteen their x/y is less than 3 etc, then they are part of a word, if position X of a is smaller then X of T then a goes before T.
If the text rotates or scales it may be very difficult if not impossible though.
I saved all the text to png files 0-9 a-z, I then scanned the screen for every one of those files, saving each location in an array, then determined their position from eachother to piece the words together.
So if I found the letter T and A and the distance bewteen their x/y is less than 3 etc, then they are part of a word, if position X of a is smaller then X of T then a goes before T.
If the text rotates or scales it may be very difficult if not impossible though.
Some of my AHK programs: 3D Voxel Game - Platformer Game
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
GitHub projects : Image/Pixel scanning class - Direct2D overlay class
Re: How to implement OCR/captcha solver?
Bypassing Captcha is not something we want on our forums please take this nonsense elsewhere
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
Who is online
Users browsing this forum: No registered users and 75 guests