How to get the text from MSWord?

How to get the text from MSWord?

Post by eGF2aWVya2 » Tue, 25 Oct 2005 14:02:03


Hi forum members, Im 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)
thanks in advance
 
 
 

How to get the text from MSWord?

Post by Christian » Sun, 30 Oct 2005 05:22:25


Use Automation.
(eg ActiveDocument.Content.Text with AutoWrap() MS function)