Frinny, Thanks you for your warm welcome. It is nice to see a good bunch of people helping eachother success. By the way, a FUN site and very informative.
Interesting...I did not think about changing focus. But my process is still running...couldn't I get the focus back again to my application?
I understand that GetWindowText can read the text in any control. SendMessage can help too. I have read a few of the posts and I understand how to get a window handle and how to retrieve the caption of the window. What I can't figure out is how to get the text or data out of the other controls, like the third item of a combo box or a text box or the information from a label.
Thanks for your replies.
Hi there!
I'm not very knowledgeable with the GetWindowText function.
But looking it up on
MSDN I found that: "GetWindowText cannot retrieve the text of a control in another application."
As for retrieving data from another control...I don't think its possible unless its part of your application.
If you create the control yourself, you'll have to define some public properties to it that allows your application (or other controls) to access their data. Otherwise, the data is all sealed up.
Even the default controls, like Labels or Textboxes do the same thing. They have properties like txt_box.Text that will set or return the control's "text" value.
What exactly are you trying to do?
-Frinny