积极答复者
如何禁止鼠标移动?

问题
答案
-
只能这样。是有办法可以控制鼠标 (用 Window Hook),但它不能动了以后,您的程序也没法控制鼠标了。目前,很多 Microsoft Test Automation 都是需要模拟移动/单击鼠标的,不过前提是运行这些 Automation 的时候不能动鼠标,否则有可能导致失误。据我所知没有 Team 解决这一问题,所以,这种情况下都是把程序放到虚拟机去跑。避免用户点击鼠标/键盘。
Mark Zhou- 已标记为答案 BoberSongModerator 2010年8月10日 5:26
全部回复
-
在用户界面上通知用户不要移动鼠标。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
在用户界面上通知用户不要移动鼠标。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
只能这样。是有办法可以控制鼠标 (用 Window Hook),但它不能动了以后,您的程序也没法控制鼠标了。目前,很多 Microsoft Test Automation 都是需要模拟移动/单击鼠标的,不过前提是运行这些 Automation 的时候不能动鼠标,否则有可能导致失误。据我所知没有 Team 解决这一问题,所以,这种情况下都是把程序放到虚拟机去跑。避免用户点击鼠标/键盘。
Mark Zhou- 已标记为答案 BoberSongModerator 2010年8月10日 5:26