如何检测窗体外的鼠标点击? [英] How to detect mouse clicks outside form?

查看:71
本文介绍了如何检测窗体外的鼠标点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Google搜索,但没有找到任何有用的信息。请帮助。

按下MLB时需要做点什么。

I googled, but not found any helpfull info. Please help.
Need to do something while MLB is pressed.

推荐答案

很抱歉只是给你一个谷歌搜索,但有很多可用的信息和方法可能取决于您正在开发的设备。



尝试使用此文本谷歌搜索

听系统事件c#鼠标点击



但是对于一个起点看看这篇文章并且它是'示例代码。

处理全局鼠标和C#中的键盘挂钩[ ^ ]
Sorry to just give you a google search but there is a lot of info available and the approach may depend on what device(s) you are developing for.

Try googling with this text
listening to system events c# mouse click

But for a starting point have a look at this article and it''s sample code.
Processing Global Mouse and Keyboard Hooks in C#[^]


这篇关于如何检测窗体外的鼠标点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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