Jump to content

how to find a text on the screen


Recommended Posts

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?

Link to comment
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?

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
Link to comment
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.

Link to comment
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?

Link to comment
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

Link to comment
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:

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)

Link to comment
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:

 

This guy?  Inmate 107?

John3.png

I hope he and his pets are free soon.

Edited by Xandy
Link to comment
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.

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

I often get bored and enjoy helping with projects.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...