Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

read data from form

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

 

0 Kudos
Message 1 of 2
(5,285 Views)

I think you may be looking for the Windows Automation API.

~ Paul H
0 Kudos
Message 2 of 2
(5,259 Views)