Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

Universal event listener

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy McGovern - 17 Oct 2005 03:05 GMT
Hello,

I am trying to find a way to use VB to create a universal event listener for
MS Word that would allow me to grab any action that the user takes in an open
Word doc (typing a word, changing a font, scrolling, etc.) and then to repeat
that event in another Word doc.  I imagine that these would be the same
events that are automatically recorded in a macro or saved in the undo log,
but I don't know how to get access to them so that I can repeat them
programatically, without the user having to save and execute a macro.  Any
help would be greatly appreciated.

Thanks,
Andy
Jezebel - 17 Oct 2005 03:42 GMT
There's no way to do this through directly VB/VBA. Many events are
detectable (check the Events listings for the Application and Document
objects) -- but there are many others that are not, and which are not
included in the Undo list or recorded when you record a macro. And many that
are recorded would be difficult to interpret relative to another document.

In principle you could do it through API calls to monitor the Windows
message stack; but I doubt you could do it fast enough -- at least using
VB -- that the original Word usage remained acceptable.

You could also look at mouse and keyboard logging software.

> Hello,
>
[quoted text clipped - 13 lines]
> Thanks,
> Andy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.