Universal event listener

A

Andy McGovern

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
 
J

Jezebel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top