Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
  • 1 month later...
Posted

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?

Posted

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

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

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

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
×
×
  • Create New...