Global hotkey release (keyup)? (WIN32 API)
问题 Is there a way to notice the release of a hot-key button registered with RegisterHotKey ? I get a WM_HOTKEY message every time I press the hot-key but I need to know when the key was released 回答1: There is no specific notification for that specific action. You will have to write a DLL that implements a global keyboard hook via SetWindowsHookEx() , then you will receive individual keypress up/down notifications and can match them up to your WM_HOTKEY notifications as needed. 回答2: Use