[英]What's the best way to read another process keystrokes?
I've managed to send to another process window keystrokes using Windows API (user32.dll, SendMessage, PostMessage). 我设法使用Windows API(user32.dll,SendMessage,PostMessage)发送到另一个进程窗口击键。 Now, I'd like to read keystrokes, should I use win API again?
现在,我想阅读击键,是否应该再次使用Win API? I've found GetMessage method but I've also read, that it can't be used to read other's process messages.
我找到了GetMessage方法,但我也读过,它不能用于读取其他人的过程消息。
将SetWindowsHookEx
与WH_KEYBOARD_LL
一起使用,可以创建系统范围的钩子,可以捕获键盘输入消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.