如何重新启动鼠标钩? [英] how to restart a mouse hook?

查看:81
本文介绍了如何重新启动鼠标钩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个鼠标钩(出于不明原因)不时(而不是经常)死掉.可能是因为在某个时间点或某时刻,挂钩没有足够快地处理鼠标移动. (可以告诉我Windows 7上的超时值是什么注册表项吗?),但是无论出于什么原因,我都想知道如果钩子掉了,我该如何重新启动它呢?我不知道应该如何检测挂钩何时死以及如何重新启动它..

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..

谢谢

推荐答案

使用的注册表项:

HKEY_CURRENT_USER\Control Panel\Desktop\

LowLevelHooksTimeout=10000

也可以更改此设置并重新启动系统. 遗憾的是,Windows 7没有提供让您知道挂接下降的规定.您可以使用mircosoft connect进行报告.

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.

这篇关于如何重新启动鼠标钩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆