Getting the text contained in an external application
i'm iterating through the system processes an when i find a process that belongs to a text oriented application, i want to read that text inside the external app. For example, when i get the process to an instance of notepad, i want to get the text contained inside notepad. i've tried to do it using Process.MainWindowHandle pointer, but with no success. How to do it?
(This is for an "nanny" app i'm writing, which need access to text in external applications so that i can detect any unappropriated words)