Created
January 5, 2024 07:38
-
-
Save alastorid/d7ca976a220df4915a1471c6fa38aca6 to your computer and use it in GitHub Desktop.
Fix Windows Mouse Wheel.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem This script will try fix your mouse wheel upside down problem | |
set QueryString=reg query HKLM\SYSTEM\CurrentControlSet\Enum\HID /s /v FlipFlopWheel^^^|find ^"HKEY^" | |
for /f "delims=" %%i in ('%QueryString%') do @( | |
reg add "%%i" /v FlipFlopWheel /t REG_DWORD /d 1 /f | |
) | |
for /f "tokens=6 delims=\" %%i in ('%QueryString%') do @( | |
wmic path Win32_PnPEntity where "DeviceID like 'HID\\%%%%i%%'" call Disable | |
wmic path Win32_PnPEntity where "DeviceID like 'HID\\%%%%i%%'" call Enable | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment