如何检测来自其他应用程序的鼠标事件?

问题描述:

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

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