Windows XP - 挂钩触摸屏事件?
我正在开发部署在 Windows XP 上的触摸屏产品。我希望能够捕获用户按下并按住触摸屏的特定区域一段时间的事件。有没有一种低级方法可以连接到 Windows 来捕获这样的事件?
泰, 弗雷德
I'm working on a touchscreen product that's deployed on Windows XP. I would like to be able to trap the event of the user pressing and holding down a certain area of the touchscreen for a certain period of time. Is there a low level way I can hook into Windows to capture an event like this?
TY,
Fred
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有这个功能,我会感到非常惊讶。您可以获得一些与 IE 相关的消息(窗口调整大小等以及早期版本中的窗口移动),但我认为仅此而已。
考虑让网页与主机操作系统变得非常不稳定会带来麻烦。
如果您完全控制部署环境(听起来它们可能是您部署的工作站或终端?),您最好的选择可能是诉诸类似下载到客户端的 ActiveX 控件之类的东西来为您挂钩消息并从那里反馈以某种方式。
I would be extremely surprised if this was available. You can get some of the messages related to IE (windows resize etc and windows move in early versions) but I think that's it.
Thinking about it letting Webpages get very jiggy with the host OS would be asking for trouble.
If you have full control of the deployment environment (sounds like they might be workstations or terminal that you deploy?) your best bet might be to resort to somelike like ActiveX controls downloaded to the client to hook your messages for you and feed back from there in some way.
考虑使用 SetWindowsHookEx 函数和 WH_MOUSE_LL(值 13) 代替 idHook 参数来挂钩鼠标事件
更多信息请访问
http://msdn.microsoft.com/en -us/library/ms644990%28v=vs.85%29.aspx
http://support.microsoft.com/kb/318804
Consider using SetWindowsHookEx Function and WH_MOUSE_LL(value 13) in place of idHook parameter to hook mouse events
More info at
http://msdn.microsoft.com/en-us/library/ms644990%28v=vs.85%29.aspx
http://support.microsoft.com/kb/318804