09-13-2013 04:31 PM
Hello,
I am trying to read data from an external application but without luck.
Previously, I have used user32.dll to get the handle of the window in question, then get a handle to a control using the control name, then read/write data to the control.
Now, I have an application which does not give me any child handles. I can bring the window to the top and use SendKeys method, but I do not like it since the focus can go to another window.
I am not sure wat method was used to write the application. SPY++ gives me only handle to the main window. UIspy can navigate all the way to the control but I have no idea how to write to it.
I guess it requires some .NET skills and I think this is TextBox or another type of text edit control. But I do not know how to get from the Process to this TextBox.
Could anybody please give me any hints?
thank you
09-16-2013 10:43 AM
I think you may be looking for the Windows Automation API.