如何检测来自其他应用程序的鼠标事件? [英] how to detect mouse event click, from another application?

查看:94
本文介绍了如何检测来自其他应用程序的鼠标事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,当我在音符块中并且我单击鼠标左键时,在我的应用程序显示中显示下一条消息'按下鼠标左键'

for example when i'm in note block and i do click left mouse, in my app display the next message 'button left mouse is been pressed'

推荐答案

您需要挂钩(捕获)系统鼠标点击事件。

有一篇文章这里 [ ^ ]关于如何实现这一目标,

以及这篇文章的解决方案关于Delphi论坛 [ ^ ]也涵盖了它
You need to "hook" (capture) system mouse click events.
There is an article here[^] about how to achieve that,
and the solution to this post on the Delphi forums[^] also covers it


这篇关于如何检测来自其他应用程序的鼠标事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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