Trying to get text from a window of a program my company uses. I have successfully written to it, however I cannot seem to get text from it. (Using Managedwinapi and win32 functions). Any suggestions on how to proceed? Thanks!

Hey all, I was exploring capabilities of manipulating a program externally with c# (Things such as inputting text, getting text content etc..) and I wanted to move on and try it on a program we use for work that is a tad bit "legacy"-like.

I studied the program window hierarchy using Spy++ and Winspector and I understand the window that I need to write and I think read from. Although writing to it works, reading from the window yields null/no content.

Any suggestions on how to approach this?

I can provide more information if need be just ask away about what you need to be able to give some direction. I can also provide images of the class hierarchy and some redacted images of the program as I don't want to give too much identifying information.

Thanks for all your help!

by Ibrowsereddits via /r/csharp

Leave a Reply