如何阻止用户鼠标输入但允许以编程方式定位鼠标。 [英] How to block user mouse input but allow mouse positioning programmatically.
本文介绍了如何阻止用户鼠标输入但允许以编程方式定位鼠标。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我有一个代码可以通过挂钩鼠标事件阻止用户输入鼠标,但我希望能够以编程方式移动鼠标,例如。使用:
Hello,
I have a code that blocks mouse input from the user by hooking mouse events, but I want to be able to move the mouse programmatically, eg. using:
Cursor.Position = New Point(500,500)
鼠标不会移动,因为该事件被挂钩。我是否必须禁用鼠标?
如果是这样,我该怎么做?
-Rixterz
The mouse won't move because that event is being hooked. Would I have to disable the mouse itself?
If so, how would I do this?
-Rixterz
推荐答案
这篇关于如何阻止用户鼠标输入但允许以编程方式定位鼠标。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文