How to get the text from MSWord?

Hi forum members, I’m checking the events that common user creates, but I couldn't find the text when is written in Microsoft Word, the only clue is that I got a EVENT_OBJECT_LOCATIONCHANGE  windows message from the caret that is in a window wich has "_WwG" class name when I type words in the document , do you know a function to get text from this window , I have already used Getwindowstext but I only got the window name and I have used the IAccessible::get_accValue  function but didn't work, (I work in vc++ and I use SetWinEventHook hook and IAccessible interface)
tanks in advance



Answer this question

How to get the text from MSWord?