Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some hotkey that I press when I do some actions (to open Software, and so on).

Is it possible to monitor these actions? Just to see which file and parameters are called pressing this key...

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

If the application in question implements its hotkey functionality via the RegisterHotKey Windows API, then you can capture the WM_HOTKEY Window Message using Spy++.

Locate the Window(s) for your application, right-click and select "Messages." This will begin listing all window messages sent to the window. Look for the WM_HOTKEY (or maybe WM_KEYUP/DOWN or even unknown) message:

Screenshot of a captured WM_HOTKEY message

This is not fool-proof, though, as there are other ways to implement hotkeys.

share|improve this answer
    
What I'd like to do is get which file/parameter is called after WINLOGO+ALT+INVIO (which open windows media center). Can I do this with Spy++? Can't right-click on WMC... –  markzzz Dec 10 '11 at 13:58
    
Oh...now I see what do you mean as "right click". Well, tried to find Windows Media Center window, but can't find it. Do you know where can I catch it? –  markzzz Dec 10 '11 at 14:10
    
P.S. I don't want to capture hotkey combination, I want to understand on which file+attribute the hotkey work... –  markzzz Dec 10 '11 at 14:11
    
With the Find Tool I found eHome FlipEx Host Window - 000A02BE! Damn, they are not ordered...its a shame search it... –  markzzz Dec 10 '11 at 14:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.