How can I know which feature (menu items, buttons, etc.) is clicked in a Windows Mobile application?
如何知道在Windows Mobile应用程序中单击了哪些功能(菜单项,按钮等)?
I need to create an app which listens to user clicks globally, much like what windows global hooks does and I need to know which part/control of every application the user clicked on.
我需要创建一个全局监听用户点击的应用程序,就像windows global hooks所做的那样,我需要知道用户点击的每个应用程序的哪个部分/控件。
TIA!
1 个解决方案
#1
Thw Windows CE OS itself doesn't support mouse hooks at all. It supports keyboard hooks (unofficially, but it's been there since 1.0). The only way to get all mouse events is to write a custom touchpanel driver and that is no small feat, especially when you have no information about the hardware. Maybe if you give us a better idea why you need this ability, we can offer alternatives.
Windows CE操作系统本身根本不支持鼠标挂钩。它支持键盘钩子(非正式,但它从1.0开始就存在)。获取所有鼠标事件的唯一方法是编写自定义触摸屏驱动程序,这不是一件小事,特别是当您没有关于硬件的信息时。也许如果你让我们更好地了解你为什么需要这种能力,我们可以提供其他选择。
#1
Thw Windows CE OS itself doesn't support mouse hooks at all. It supports keyboard hooks (unofficially, but it's been there since 1.0). The only way to get all mouse events is to write a custom touchpanel driver and that is no small feat, especially when you have no information about the hardware. Maybe if you give us a better idea why you need this ability, we can offer alternatives.
Windows CE操作系统本身根本不支持鼠标挂钩。它支持键盘钩子(非正式,但它从1.0开始就存在)。获取所有鼠标事件的唯一方法是编写自定义触摸屏驱动程序,这不是一件小事,特别是当您没有关于硬件的信息时。也许如果你让我们更好地了解你为什么需要这种能力,我们可以提供其他选择。