Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以拦截发送到窗口的击键(和字符)?通过拦截,我的意思是扮演中间人,而不是仅仅钩住窗口。
我想过滤(即消除一些击键)对窗口的击键。
使用 SetWindowsHookEx()。只需使用简单的 WH_KEYBOARD_LL 挂钩即可消除击键。它不是一个全局钩子,所以很容易做对。谷歌也很好。