Jump to content
Sign in to follow this  
alex70

about Optical Character Recognition

Recommended Posts

alex70

Hello,

Here is the question:

Reading text from one windows appl at every few seconds and do action according to the extracting results.

Any idea and code please?

Thanks in advance

Share this post


Link to post
Share on other sites
alex70

Thank You for answering.

I read a lot for ControlGetText, but it cant extract info from this this control:

Basic Window Info:

Title: Untitled

Class: AfxFrameOrView70u

Basic Control Info:

Class: AfxWnd70u

Instance: 7

Here is the code:

$text = ControlGetText("Untitled", "","[CLASS:AfxWnd70u; INSTANCE:7]")
MsgBox(0, "Text read was:", $text)

Can you tell me where the problem is?

Thank you

Edited by alex70

Share this post


Link to post
Share on other sites
pphd

I am facing the same problem as you did. Just cannot get the text using ControlGetText function.

And I am planning to use Ocr for the moment. But I am still not very sure if using Ocr to get the text is the best solution. Anyone with experience could say something about it?

Share this post


Link to post
Share on other sites
herewasplato

$text = ControlGetText("Untitled", "","AfxWnd70u7")

...might work better for the OP and those following that example...


[size="1"][font="Arial"].[u].[/u][/font][/size]

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  

×