您已经回答了问题。
在回车时设置系统鼠标速度,并在回车时重置系统鼠标速度。
在应用程序关闭时将其重置。
将原始鼠标速度存储在某个静态变量中。
看一下这个线程:
Dynamically changing Mouse speed
您可以捕获所有未处理的异常:
// UI exceptions
Application.ThreadException += HandleErrorUI;
// Set the unhandled exception mode to force all Windows Forms errors
// to go through our handler.
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
// Add the event handler for handling non-UI thread exceptions to the event.
AppDomain.CurrentDomain.UnhandledException += HandleError;
// handle all task exceptions
TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException;
然后,如果出现任何未处理的错误,请重置鼠标光标速度。
本文链接:https://www.f2er.com/3141716.html