get text from any window

  • Thread starter Thread starter D
  • Start date Start date
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.
 
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.
 
Back
Top