get text from any window

D

D

If I have the window title is there a method of getting the text into a
class(String) for later use.

Ex. I am running a chat application and want to capture the text coming in
so I use it in my other program.
 
D

D

I wasn't clear I apoligize. I was looking to get the text within the window
not the text of the title of the window.
I'm am using EnumDesktopWindows and GetWindowText, is there an api like
innerbodytext or a trick for getting the text from within the window?

If wordpad is open I want to be able to access the text within the body of
the "active" window? Not just save the file and read it from a file IO.
I am thinking I might have to subclass the windows messages but any advice
would be much appriciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top