如何捕获鼠标事件并抑制在C#中发生的事件 [英] How to capture mouse event and suppress that to happen in C#

查看:118
本文介绍了如何捕获鼠标事件并抑制在C#中发生的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

我需要编写一个应用程序来捕获所有鼠标事件并禁止它。我将使用捕获的事件稍后进行模拟。我搜索并发现人们正在使用 钩子捕获鼠标事件。我不知道它是如何工作的。一些
一个请帮帮我吗?细节教程钩子如何工作将是很大的帮助。或者,如果某人已经写过这样的内容,请您分享代码吗?&bbsp; b
$ b b b b b b b b b b b b b b b b b b b b b b b b b b b b b

解决方案


你的问题解决了吗?如果是,请发布"标记为答案"如果他们面临类似的问题,它将帮助其他成员快速找到解决方案。


问候,


Kyle


Hello All,
I need to write an application which will capture all mouse events and suppress it. I will use that captured event to emulate later. i searched and found people are using  hook to capture the mouse event. i don't have any idea how that works. Can some one please help me with this ? detail tutorial how hooks works would be great help. or if someone has already written something like this please would you please share the code ? 

Thanks in advance

解决方案

Hi,

Is your problem solved? If so, please post "Mark as answer" to the appropriate answer , so that it will help other members to find solution quickly if they faces similar issue.

Regards,

Kyle


这篇关于如何捕获鼠标事件并抑制在C#中发生的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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