获取它来自(SetWindowsHookEx)的KB和鼠标 [英] Get which KB and mouse it came from (SetWindowsHookEx)

查看:93
本文介绍了获取它来自(SetWindowsHookEx)的KB和鼠标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了SetWindowsHookEx,但是在我的KeyboardProc和MouseProc回调函数中无法获取事件来自哪个KB/鼠标.

有人知道我该怎么做吗?

I used SetWindowsHookEx, but I cannot get which KB/mouse the events are coming from in my KeyboardProc and MouseProc callback functions.

Does anyone know how I can do that?

推荐答案

我可以知道您为什么要标识特定的键盘或鼠标.与Keyboardproc和MouseProc一样,没有办法知道该信息.您想要的.
May I know why do you want to identify the particular keyboard or mouse. As with Keyboardproc and MouseProc, there ia no way to know the info. you want.


也许您的意思是消息发送到的窗口!?
您应该使用:GetFocus()GetCapture()WindowFromPoint().
问候.
Perhaps you mean the window the message is sent to!?
You should use: GetFocus(), GetCapture() and WindowFromPoint().
Regards.


这篇关于获取它来自(SetWindowsHookEx)的KB和鼠标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆