How can I read data from controls in a window in another application?

I need to write an application that watches another application and retrieves information from a window. What is the best way to access windows from other applications and get data from their controls?

+3
source share
1 answer

You will need P / Invoke FindWindowand FindWindowExto get the handle of the other parent application window and child controls.

Then you will need to use something like GetWindowTextto access the text for a specific control.

Visit pinvoke.net for definitions that you will need to call from C #.

, . , , .

+4

Source: https://habr.com/ru/post/1793851/


All Articles