跟踪鼠标单击C#GUI [英] Track Mouse Click in C# GUI

查看:77
本文介绍了跟踪鼠标单击C#GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,



我目前正在开展一个项目,我必须在屏幕上跟踪鼠标光标,然后获取我左键单击的位置坐标。我目前已经使用了鼠标钩子来显示鼠标光标在窗口内的位置,但是我无法点击鼠标来工作。有谁知道如何完成这项任务?



谢谢,

John

Greetings,

I am currently working on a project in which I have to track the mouse cursor on the screen and then get the coordinates of where I left click. I have currently gotten the mouse hook to work which shows the coordinates of where the mouse cursor is within the window but I can''t get the mouse click to work. Does anyone know how to accomplish this task?

Thank you,
John

推荐答案

使用全局钩子:全球鼠标和键盘库 [ ^ ]
Use global hook: Global Mouse and Keyboard Library[^]


这篇关于跟踪鼠标单击C#GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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