Jump to content
Sign in to follow this  
xHPx

Getting text written on screen

Recommended Posts

xHPx

Hello there, autoit forums >_<

Is it possible to get screen text with autoit? Text written on the screen in games, in example.

Attached is an example, is it possible to get the name of the System with autoit?

post-52184-12500233063751_thumb.png

Share this post


Link to post
Share on other sites
zorphnog

Try searching for OCR (optical character recognition).

Share this post


Link to post
Share on other sites
Rambo

Hey there,

I made a simple tool using Tesseract to recognize numbers, but i have a problem: Tesseract converts 1 (0nes) as l (L letter) and the tool crashes...

Any way to force to recognize only numbers?

Thanks

Share this post


Link to post
Share on other sites
JohnOne

Hey there,

I made a simple tool using Tesseract to recognize numbers, but i have a problem: Tesseract converts 1 (0nes) as l (L letter) and the tool crashes...

Any way to force to recognize only numbers?

Thanks

Could you not just change it ?

If $i = "L" then

$i = "1"

Just a thought.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
Rambo

Yes but i need to work with two digits number.

Im using "Fileread" to get the numbers from Tesseract´s TXT output file. Maybe if i try with "Stringreplace"??

Share this post


Link to post
Share on other sites
Rambo

Since im using english language, i had no problems with my tests. A great surprise because i have no idea how to configure or "train?" Tesseract...

For one or two digits, i´m doing this:

If the filesize is 5 bytes, the captured file contains only one digit, so "Fileget" one character

If the filesize is 6 bytes, the file contains two digits, so...

Not a genius solution, but it works :D

Thanks anyway for your ideas John

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×