Last active
August 25, 2024 15:47
-
-
Save coughingmouse/df434fd09355e6972c9b8a08626c06bc to your computer and use it in GitHub Desktop.
Reverse Scroll on Windows (Applies instantly; no restart needed, applies to all current devices)
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
# Written by Jason Go | |
# From https://answers.microsoft.com/en-us/windows/forum/all/reverse-mouse-wheel-scroll/657c4537-f346-4b8b-99f8-9e1f52cd94c2 | |
# Run as administrator on Powershell | |
$mode = Read-host "How would you like your mouse to scroll like? (0 for like Windows or 1 for like Mac)"; | |
Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; | |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; | |
"+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n"; | |
Disable-PnpDevice -InstanceId "$($_.DeviceID)" -Confirm:$false; | |
Enable-PnpDevice -InstanceId "$($_.DeviceID)" -Confirm:$false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment