I'm trying to write an C# application to get all Text from another C# winform application. The text that I want to get is Button's text, Textbox's text content, Lable's text, etc. I have tried many different ways such as using UIAutomation, FindWindowEx but still not successful. Could someone please show me a sample C# code to do that jobs?
Asked
Active
Viewed 140 times
0
-
uiautomation is the way to go – pm100 Nov 17 '17 at 00:31
-
@pm100, how to list all component with UIAutomation? – Nguyen Anh Tuan Nov 17 '17 at 00:32
-
2What have you tested, and what doesn't work exactly? https://stackoverflow.com/help/mcve – Simon Mourier Nov 17 '17 at 07:17