Office hooks
-
Hi, I'm working in pretty unfamiliar terrain, so I apologise if this is the wrong place to ask this question or if the question is wrong. I'm trying to write code that acts on events in Microsoft software. I've worked out how to do this for generic Windows hooks like for keyboard entries, but can't work out how to do it for Office events (e.g., saving or printing a document). Can anyone point me to a reference of hooks available in Office? Thanks
-
Hi, I'm working in pretty unfamiliar terrain, so I apologise if this is the wrong place to ask this question or if the question is wrong. I'm trying to write code that acts on events in Microsoft software. I've worked out how to do this for generic Windows hooks like for keyboard entries, but can't work out how to do it for Office events (e.g., saving or printing a document). Can anyone point me to a reference of hooks available in Office? Thanks
Member 10710970 wrote:
I've worked out how to do this for generic Windows hooks like for keyboard entries
A keyboard/mouse hook does not work based on events - it works by hooking a API call.
Member 10710970 wrote:
but can't work out how to do it for Office events (e.g., saving or printing a document).
Correct.
Member 10710970 wrote:
Can anyone point me to a reference of hooks available in Office?
API Hooking with MS Detours[^]
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]