Git Product home page Git Product logo

win10-mouse-natural-scroll's Introduction

win10-mouse-natural-scroll

Intended to enable a natural scrolling feature for USB mouse under Windows 10

Get Started

.\mouse-natural-scroll.ps1

To Disable

.\mouse-natural-scroll.ps1 reverse

and restart your computer

win10-mouse-natural-scroll's People

Contributors

jm33-m0 avatar lucienshui avatar proski avatar procommiter avatar

Stargazers

 avatar Sengiv avatar Maxim avatar Haojie Zhang avatar Yves Wang avatar Rob Mayoff avatar  avatar Daniel Belleflamme avatar Runliang Liu avatar Maximilian Hantsch avatar Mike Fisher avatar Tom Hensel avatar  avatar Statanis 123 avatar Matt Spendlove avatar Lau Borges avatar  avatar Coool (github.com/Coool) avatar Maemolee avatar  avatar Renn avatar Masen Furer avatar Codrut Ban avatar Flip Phillips avatar 吴天铭 avatar Maksym Nosovets avatar  avatar S0cke3t avatar

Watchers

 avatar  avatar

win10-mouse-natural-scroll's Issues

Reboot isn’t necessary, can you script it?

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

Can't append new results into the $mouse array

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.