Skip to content

Powershell script to quickly enable/disable mouse. Default toggles based on current state. toggle_mouse.ps1 -enable or toggle_mouse.ps1 -disable if you want to be specific.

Notifications You must be signed in to change notification settings

andrew-gaston/toggle-mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Powershell script to quickly enable/disable all mouse devices on your PC. Tested using Windows 10 only.

Examples

Toggle based on current state

toggle_mouse.ps1

Explicitly enable

toggle_mouse.ps1 -enable

Explicitly disable

toggle_mouse.ps1 -disable

Usage ideas

  1. Bind to a hotkey. My choice is to use it with AutoHotKey. Gives you flexibility, but also you have to make a conscious decision to re-enable.
  2. Run using Task Scheduler. It will disable my mouse during work hours and then re-enable it after work.

About

Powershell script to quickly enable/disable mouse. Default toggles based on current state. toggle_mouse.ps1 -enable or toggle_mouse.ps1 -disable if you want to be specific.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published