获取Mouse Click的坐标 [英] Get coordinates of Mouse Click

查看:56
本文介绍了获取Mouse Click的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我在Windows窗体中工作,需要一个代码,它给出了鼠标单击的表格坐标。单击必须在表单外部进行,例如在浏览器中。要在Form上检测坐标很容易,但是当在Form外部进行Click时我不能说同样的话。我搜索并发现Windows Hooks可以制作它们但仍然无法制作它。任何人都可以帮我解决这个问题吗?

解决方案

这篇文章可能对你有帮助:使用C#处理全局鼠标和键盘挂钩 [ ^ ]。即使它只有很少的解释,它看起来像你正在寻找的。

Hello guys.I am working in windows Form and need a code , which gives me on Form coordinates of Mouse Click. Click must be made outside of the Form , for example in Browser. To detect coordinates on Form is easily but I can't say the same when Click is made outside the Form. I have searched and find out that "Windows Hooks" can make them but still can't make it. Can anyone help me with that code ?

解决方案

This article would probably help you: Processing Global Mouse and Keyboard Hooks in C#[^]. Even though it has very little explanation, it looks like what you're searching for.


这篇关于获取Mouse Click的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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