How to capture data in a window
c#, windows
Solution
I suggest you use the cool but little-known UI Automation API for this work.
For this, the first thing to test is launch the associated UISpy tool. It will display a tree of all accessible windows on screen. It also is able to run some actions like pressing a menu, selecting an item, etc. This is using what's called UI Automation Control Patterns, which provide a way to categorize and expose a control's functionality independent of the control type or the appearance of the control.
So, if you can automate this application with UI Spy, you also can do the exact same thing using .NET code (UISpy is itself simply using the underlying API).
Here is an interesting tutorial article about UI automation programming: The Microsoft UI Automation Library
Problem
I have a desktop application installed on my machine. When I start a program some kind of window gets open. let's say, something like this (just example): So, I want to write an application in C# that will find this window and capture some data from it. What tools should I look at? I want to go with a path of least resistance. I need to capture images, text from textboxes, and also find controls by text and click on them.