4

我不知道是哪个软件成功了,但是我的鼠标滚动速度不断更改为“1”,在我将其设置为“3”后,可能一个小时后,它再次重置为“1”,这使得浏览代码或网页相当不方便。

我不想经常去控制面板→鼠标。那么我怎样才能在命令行上做到这一点呢?

4

4 回答 4

4

尝试这个:

reg add "HKCU\Control Panel\Mouse" /v MouseSensitivity /t REG_SZ /d 20 /f

只需根据需要更改灵敏度。1(最低)- 20(最高)。例如,另存为文件mouse.bat,然后将其放入开始菜单的启动文件夹中。

超级用户

于 2013-06-11T09:37:37.050 回答
0

我在不同的注册表项下找到了滚轮滚动设置。尝试...

reg add "HKCU\\**Control Panel\Desktop**" /v **WheelScrollLines** /t REG_SZ /d 6 /f
于 2015-03-13T20:40:16.907 回答
0

它最初是在这里回答的

更改注册表值不会应用更改。

Windows 系统在启动时读取并加载它们,这不会在更改值时发生。您需要调用系统 API 来执行此操作。

我也使用了 PowerShell 脚本。您可以在以下位置找到代码

https://github.com/raevilman/windows-scripts/tree/master/mouse/speed

我在那里放置了两个批处理文件。一个用于触摸板,一个用于 USB 鼠标,因为它们都以不同的速度运行。您一定会根据需要拥有您的版本。

PS:不要问PowerShell执行策略等,如果你面对他们。去谷歌上查询。

于 2019-03-27T07:24:56.280 回答
0

这是完成此任务的最佳方法,完成该过程一次后无需干预。

1. You must identify which MouseSensitivity registry entry is getting modified.  
   a) Start the registry editor in administrator mode.  
   b) Make sure you're at the first registry hive by clicking "Computer" at the top.  
   c) Press CTRL+F to open the Find dialogue, type "MouseSensitivity", and press ENTER.  
   d) Make note of the MouseSensitivity setting's value.  
   e) Change your mouse setting to anything other than the current setting.  
   f) Press F5 and see if the MouseSensitivity registry entry also changes.  
   g) If the setting changes, go to step number 2; If not, then continue to H.  
   h) Press F3 to search for the next MouseSensitivity entry and go back to step D.  

2. Now you want to lock in the desired setting and prevent it from being changed.  
   a) Change your mouse setting to your desired setting.  
   b) Press F5 and confirm that the MouseSensitivity registry entry also changes.  
   c) Now, with the setting highlighted, Open the Edit menu and select Permissions.  
   d) Select the Owner tab, click on your name, Check the option to "Replace  
      owner on subcontainers and objects", and slick on Apply.  
   e) Select the Permissions tab, uncheck "Include inheritable permissions from  
      this object's parent" and click Apply.  
   f) Under "Permission entries", select and Remove every entry.  
   g) Click on Add, in the "Enter the object name to select" box, type Everyone,  
      and click "Check Names". Verify "Everyone" gets underlined and click on OK.  
   h) Double click Everyone, and in the Permission Entry window, click Clear All.  
   i) Click these options under Allow:  
      Query Value; Enumerate Subkeys; Notify; Read Control  
   j) Click these options under Deny:  
      Set Value; Delete; Write DAC; Write Owner  
   k) Click OK to close the Permissions Entry window  
   l) Click OK to close the Advanced Security Settings window  
   m) Click OK to close the Permissions for Mouse window  
   n) Reboot the computer or log off and back on. (Not required but recommended)  

You should no longer have this problem, but keep in mind that if you ever want  
to change your mouse speed setting again, you'll have to do go back into the  
registry and restore write permissions to MouseSensitivity. Here's the easy way  
to do that (simplified instructions):  

   a) Open the permissions for MouseSensitivity.  
   b) Click Advanced to open the Advanced Security Settings for Mouse window.  
   c) Remove "Everyone" from the Permission entries list.  
   d) Check the "Include inheritable permissions from this object's parent" box.  
   e) Click OK and OK to close both the Advanced window and Permissions window.  
   f) Reboot or log off and back on (Not required but recommended)  

我希望这有助于除 OP 之外的其他人。

于 2020-01-23T19:11:20.443 回答