暂时禁用鼠标点击,或过滤鼠标点击
我正在使用 Visual Basic 2008 Express
有没有办法在 Visual Basic 2008
中禁用鼠标单击一段时间,我的意思是如果在很短的时间内单击鼠标超过 1 次只点击一次? -- 我需要它,因为我的鼠标变得疯狂......当我点击一次时,它可能会点击两次或更多次......,这非常非常烦人......所以在我购买另一只之前,我想过滤点击,仅允许一次单击并阻止最后一秒进行的其他单击。
PS:很抱歉这个问题,但这真的很烦人......
谢谢:)
Im using Visual Basic 2008 Express
Is there a way to disable mouse click for a while in Visual Basic 2008
, I mean if mouse was clicked more than 1 time in very short time to click only once? -- I need it because my mouse became like crazy one.. when I click once it may clicks twice or more.., This is very very annoying... so until I buy another one, I'd like to filter click, to allow only one click and to block another clicks that were made in last second.
P.S : sorry about that question, but it is really annoying...
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
The Code Project 上有一篇关于处理全局鼠标事件的文章: Processing Global Mouse and Keyboard Hooks in C# 。看起来这篇文章引出了一个名为 C# 中的全局鼠标和键盘挂钩 .NET 库 的项目。您应该能够将该库包含在您的 VB.NET 项目中并从那里附加到事件。本文还引用了 MSDN 上的一些其他信息,您在开始此项目之前应该阅读这些信息。
不过,使用 C 或 C++ 这样的非托管语言可以更容易地做到这一点。
虽然这些示例是用 C# 编写的,但它们应该很容易转换为 VB.NET。
There's an article on processing global mouse events on The Code Project: Processing Global Mouse and Keyboard Hooks in C#. It looks like the article lead to a project called Global Mouse and Keyboard Hooks .NET Libary in C#. You should be able to include the library in your VB.NET project and attach to events from there. The article also references some other information on MSDN that you should read before embarking on this project.
This is something that would be much easier to do from an unmanaged language like C or C++ though.
Although these samples are in C#, they should be easy enough to translate into VB.NET.