I need to write a program that detects (and records statistics of) how often the user uses the mouse to activate application menu items (such as open, save, copy, paste).
My question is: is there a way to detect that the user actually clicks one of these menu items? I have used Winspector to see what WM_xxx events are being fired, but so far I could not make anything sensible out of this, let alone reconstruct that File->Save was clicked.
PS: I can understand that it may be difficult to get this working reliably across all apps, but at least as I can get something working for Windows office and explorer that would be great.