about keyboard hook
-
SetWindowsHookEx(WH_MOUSE, KeyBoardProc, g_hMod, 0); LRESULT CALLBACK KeyBoardProc(INT iCode, WPARAM wParam, LPARAM lParam) { }
How to know the "A" key is down and the CTRL key is down? how to get {repeat count, scan code, extended-key flag, context code, previous key-state flag, transition-state flag} from lParam? and what is KF_DLGMODE? how to use it in KeyBoardProc? Thanks very much. -
SetWindowsHookEx(WH_MOUSE, KeyBoardProc, g_hMod, 0); LRESULT CALLBACK KeyBoardProc(INT iCode, WPARAM wParam, LPARAM lParam) { }
How to know the "A" key is down and the CTRL key is down? how to get {repeat count, scan code, extended-key flag, context code, previous key-state flag, transition-state flag} from lParam? and what is KF_DLGMODE? how to use it in KeyBoardProc? Thanks very much. -
SetWindowsHookEx(WH_MOUSE, KeyBoardProc, g_hMod, 0); LRESULT CALLBACK KeyBoardProc(INT iCode, WPARAM wParam, LPARAM lParam) { }
How to know the "A" key is down and the CTRL key is down? how to get {repeat count, scan code, extended-key flag, context code, previous key-state flag, transition-state flag} from lParam? and what is KF_DLGMODE? how to use it in KeyBoardProc? Thanks very much.HOW WHAT wrote:
How to know the "A" key is down and the CTRL key is down?
Look at MSDN for
GetKeyState()
,GetAsyncKeyState()