Skip to content

Instantly share code, notes, and snippets.

@alastorid
Created January 5, 2024 07:38
Show Gist options
  • Save alastorid/d7ca976a220df4915a1471c6fa38aca6 to your computer and use it in GitHub Desktop.
Save alastorid/d7ca976a220df4915a1471c6fa38aca6 to your computer and use it in GitHub Desktop.
Fix Windows Mouse Wheel.cmd
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