justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Trying to catch any WM_KEYUP message in MIDI editor, but registered keyboard accelerator doesnt work (I guess M editor accel swallowed it). Also tried SetWindowLongPtr(GWLP_WNDPROC) but even there I cant catch WM_KEYUP (strange since Spy++ sees it). Due to SWELL I can't register keyboard hook or use GetAsynKey(). Is there any way to get it working? Thanks!
Asked by Martin (93.138.18.x) on February 21 2015, 7:58am
Reply on February 23 2015, 2:03am:
    hmm yeah that won't work, since the default accelerator takes precedence. If you want to pre-hook the accelerator, there's an undocumented API to put your accelerator at the front of the list -- use Register("<accelerator"). This could go away at any time though, and you might break things.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS