I am fighting with this thing for the whole day. Still i couldn't figure out the exact solution for this. Help me out.
My objective is very simple. I want to get the text which is in textbox of other application. It may be a textbox of gtalk client or a soap UI screen.
I googled and most of the forums suggested winapi is the concept that i have to use to achieve this. I never used this concept and also i didn't get any good examples. Please help me on how to approach this and get this thing done. Is there any another way to achieve this ?
Waiting for your response guys...
One option would be to use TestStack.White, a UI automation framework. It's based on project white, and the original documentation is here.
Here is an example of how to grab all the text from a window by it's window title.
Please see the comments for an explanation on how this works.
You are correct. You will need to use the Windows API. For example:
But first, you'll probably need to use FindWindow or FindWindowEx(?) recursively from the desktop down to where the text box is in the window hieracrchy to get the right window handle.
It looks like http://www.pinvoke.net/ has a good database of Win API's.
Hope that helps.