更新时间:2023-12-03 10:08:34
键盘钩子就是您要寻找的答案.
为此,您必须与Windows DLL进行交互,但是在codeproject上有很多不错的文章.
试试这个全局鼠标和键盘库 [
Keyboard hooking is the answer you''re looking for.
You''ll have to interact with a Windows DLL for that, but there are plenty of good articles on it on codeproject.
Try this Global Mouse and Keyboard Library[^].
I believe it contains all you need.