问题标签 [wh-keyboard-ll]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
11 问题
0
投票
0
回答
164
浏览
c++ - WH_KEYBOARD_LL 不适用于常规字母和数字
我SetWindowsHookExA(WH_KEYBOARD_LL, HookCallback, GetModuleHandleA(NULL), 0);
用来设置一个全局钩子来捕获击键,但结果很奇怪。
回调函数可以在我按下“Enter”、“Tab”、“Shift”、“Ctrl”等具有虚拟键码的“特殊”键时执行,而当我按下时无法捕获击键常规的字母和数字。
我对此感到困惑,谁能告诉我原因?