how to restart a mouse hook?

♀尐吖头ヾ 提交于 2019-12-13 02:57:35

问题


I have a mouse hook that (for an unknown reason) dies every now and then (not too often). Maybe it's because a mouse move is not processed fast enough by the hook at some point in time or smth. (can someone btw. tell me what the registry key is for the timeout value on Windows 7?), but whatever the reason, I'd like to know how I can restart the hook if it's dropped? I don't know how I'm supposed to detect when the hook dies and how to restart it..

Thanks


回答1:


The registry key used:

HKEY_CURRENT_USER\Control Panel\Desktop\

LowLevelHooksTimeout=10000

Also change this and reboot your system. Windows 7 sadly has no provision for letting you know of hook drops. You may use mircosoft connect to report this.



来源:https://stackoverflow.com/questions/3819731/how-to-restart-a-mouse-hook

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!