alex70 Posted May 13, 2007 Share Posted May 13, 2007 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted May 13, 2007 Share Posted May 13, 2007 Don't use OCR. Use ControlGetText instead. github.com/jvanegmond Link to comment Share on other sites More sharing options...
alex70 Posted May 15, 2007 Author Share Posted May 15, 2007 (edited) Thank You for answering.I read a lot for ControlGetText, but it cant extract info from this this control:Basic Window Info:Title: UntitledClass: AfxFrameOrView70uBasic Control Info:Class: AfxWnd70uInstance: 7Here 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 May 15, 2007 by alex70 Link to comment Share on other sites More sharing options...
pphd Posted June 26, 2007 Share Posted June 26, 2007 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? Link to comment Share on other sites More sharing options...
herewasplato Posted June 26, 2007 Share Posted June 26, 2007 $text = ControlGetText("Untitled", "","AfxWnd70u7") ...might work better for the OP and those following that example... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now