I am working on a Microsoft Word Add-in and need a shove in the right
direction, please.
I need to build a feature that is technically equivalent to the Microsoft
Word spell checker. That is, it needs to do some work (in a separate thread)
as the user types.
I haven't been able to find an event or technology that I can use to trap
changes that are made to the document either through keystrokes or
otherwise.
Things I have looked at are:
> Events in the Document, Content, Window, Pane, View, and Range objects.
> Using SetWindowsHookEx(WH_KEYBOARD_LL, ... to trap keyboard events. This
should work but I will try working within MS-Word first.
> The Selection change events.
> The Application has a document change event but as I understand it, that
doesn't mean the document content.
PS: We are using VB6 macro's, along with VSTO 2005 with C# but I don't mind
using anything as long as I can get it working.
Thanks & Kind Regards,
Tom
--
Enjoy,
Tony
"Thomas Sinclair" <TomM...@community.nospam> wrote in message
news:A5FE864A-761A-4601...@microsoft.com...
> > Using SetWindowsHookEx(WH_KEYBOARD_LL, ... to trap keyboard events. This
> should work but I will try working within MS-Word first.
>
I think this is the only way you can do it, outside of using VBA KeyBindings
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)