Intended to enable a natural scrolling feature for USB mouse under Windows 10
.\mouse-natural-scroll.ps1
.\mouse-natural-scroll.ps1 reverse
and restart your computer
Enable natural scrolling feature for a USB mouse under Windows 10/11
License: GNU General Public License v3.0
https://choosealicense.com/licenses/mit/#
Changing to MIT license would allow this to be used by people like Microsoft, who cannot use GPL licenses since it would force them to open source their code.
While I choose GPL when I can, it would be nice if this was in PowerToys..
first and foremost, thanks for the script! Very helpful! A reboot is not necessary for the changes to take place. All you need to do is disable your mouse in device manager, and re-enable it. Looking at your script, I’m curious if I can be updated to complete these steps with each qualified device in the loop, right after you update the registry entry and viola! Live inverted scrolling!
Thanks!
-Bryan
I run the mouse-natural-scroll.ps1
script on my system and it prompts the following errors:
Method invocation failed because [Microsoft.Management.Infrastructure.CimInstance] does not contain a method named 'op_Addition'.
At C:\Users\gamer\Downloads\mouse-natural-scroll.ps1:4 char:1
+ $mouses += Get-CimInstance -ClassName Win32_PointingDevice | Where-Ob ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
I believe line 3 to be:
$mouses = @(Get-CimInstance -ClassName Win32_PointingDevice | Where-Object Name -Match "USB Input Device")
Seems you should declare the $mouses
as an array if it only finds one result.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.