Sign in to follow this  
Followers 0
Alchmist

Ocr for a List box

4 posts in this topic

Hello, im very noob in autoit, and i was seeking for a simple ocr function that could alow me to get a partial text from a list box, so that i could put it in a variable and compare it later, the scripts for ocr i´ve found in this forum, are away to much complex for what i want to do, at least i guess so...

Can someone help me...

Thanks in advanced...

Share this post


Link to post
Share on other sites



You don't need OCR if it's standard Windows ListBox control.

Look at _GUICtrlListBox_GetText() and _GUICtrlListBox_GetCount()

that wont work because i want to get just a partial part of the text in each item

Share this post


Link to post
Share on other sites

that wont work because i want to get just a partial part of the text in each item

So get the text with what Zedna has posted, and use the "String*" functions to manipulate the text.

If the text is Graphical, the application name to help you is needed, if it's one of those Ancient Chinese secret applications, then you'll need to look up OCR in the example script forum and start teaching yourself the art of constructing an OCR engine.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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