Sign in to follow this  
Followers 0
marawan

how to find a text on the screen

23 posts in this topic

#1 ·  Posted (edited)

Hi all I want to know a simple script that will make autoit look for the text I want in the screen and get its x .y. pos. Please fast

Edited by marawan

Share this post


Link to post
Share on other sites



I did it by scanning each letter pixel information.  Remove all the non letter pixel information from letter surfaces.  Make a mask of each letter that specifies the pixel locations to check within the letter surface.  Some times you don't need a mask b/c your background has some consistency.  Idk.  I also used a pixel match count per letter to validate comparison.

Whatcha trying to do?


Spoiler

I have no complaints.  I mean there are lots of things wrong with the world but I am not unhappy.
How could we ever fix it all, but to hope that one day we might?

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I did it by scanning each letter pixel information. Remove all the non letter pixel information from letter surfaces. Make a mask of each letter that specifies the pixel locations to check within the letter surface. Some times you don't need a mask b/c your background has some consistency. Idk. I also used a pixel match count per letter to validate comparison.

Whatcha trying to do?

Ps iam a noob I understood absolutely nothing please tell me it again in a more noobish way

I am making it as a school project with no programing language specification I thought there would a normal way to do it so please if you can describe it more easily and thank you

Edited by marawan

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

?? Please any one i need it by today

Edited by marawan

Share this post


Link to post
Share on other sites

I use the term 'scan' to mean read the pixel information from the screen or program surface.

The first step of scan would just be cropping the pixel data letters you intend on being able to read.  Maybe printscreen, paint.net, crop some letters.

I use the term 'surface' in this case as a general purpose application window pixel area.  Surfaces are not limited to bitmaps, but I just think of them as bmp pixel data

I'd start by cropping out all the letter, number pixel data you want to be able to compare against.


Spoiler

I have no complaints.  I mean there are lots of things wrong with the world but I am not unhappy.
How could we ever fix it all, but to hope that one day we might?

 

Share this post


Link to post
Share on other sites

?? Please any one i need it by today

 

I wouldn't want to try and write it for you.  I'd require the pixel data to feel comfortable with that.

I don't know what to tell you.

How much did you spend on the school?  Will your grades suffer?  Where would you like to be in 5 years?

Will you still want to work on this project tomorrow?


Spoiler

I have no complaints.  I mean there are lots of things wrong with the world but I am not unhappy.
How could we ever fix it all, but to hope that one day we might?

 

Share this post


Link to post
Share on other sites

I was looking for a script that I will read and try to understand or something but it appears to be a very hard to do right now by this small experience I have so thank you for your effort

If there is any thing easier I will really appreciate it

Share this post


Link to post
Share on other sites

John one what are you talking about? ?

Share this post


Link to post
Share on other sites

Do you want this script as fast as you wanted that game script you asked for in a previous topic? or faster? I believe JohnOne is almost done writting it for you

Share this post


Link to post
Share on other sites

No for the school project I made something else but I want this for me if every time I post a topic some one will open it and remind me with this

Just forget it. ..easy

Share this post


Link to post
Share on other sites

Thank you for your effort john one I can't wait for the results

1 person likes this

Share this post


Link to post
Share on other sites

Don't wait for too long: JohnOne is known to be an extremely slow coder but don't repeat that, he's quite touchy :whistle:

2 people like this

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

Don't wait for too long: JohnOne is known to be an extremely slow coder but don't repeat that, he's quite touchy :whistle:

 

This guy?  Inmate 107?

John3.png

I hope he and his pets are free soon.

Edited by Xandy
2 people like this

Spoiler

I have no complaints.  I mean there are lots of things wrong with the world but I am not unhappy.
How could we ever fix it all, but to hope that one day we might?

 

Share this post


Link to post
Share on other sites

Just adding the finishing touches.

 

I'm testing and I keep getting an error with hex "486f772061626f7574206e6f3f" ... ?

2 people like this

Share this post


Link to post
Share on other sites

Instead of trolling you, like everyone else. I'll ask directly. What is the window that you are trying to get the text from?
If it's a standard window, you should be able to pull the information out. If you're talking about a gaming interface... first the forums aren't the right place to ask for that type of advice, and secondly, you would have to create a program that is capable of actually reading each character on the screen. This would be called OCR or Optical Character Recognition software.

Using the Autoit Window Info tool that comes with Autoit might help you get some information about the window that you need to look at.

You will also receive much more help if you start a project, and try to do it yourself. Then post what you're having an issue with. If you want someone to code something for you. We would need a lot more information than just, "read text"

Good luck.

1 person likes this

If you need help with your stuff, feel free to get me on my Skype.

I often get bored and enjoy helping with projects.

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

Never heard of OCR thank you.

I started looking for OCR programs and found this Tesseract (it's a Wikipedia link).  I'm not entirely sure I would figure it out for this purpose, but it did look very promising, free (I think), and open source.

You can find Tesseract on Google Code.  Just google 'tesseract ocr'.

Edited by Xandy

Spoiler

I have no complaints.  I mean there are lots of things wrong with the world but I am not unhappy.
How could we ever fix it all, but to hope that one day we might?

 

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  
Followers 0