George Mauer
George Mauer

Reputation: 122222

Disable/Enable PS/2 device programatically

I have an HP Envy and for all it's good qualities it's got a horrible, dumb, always-in-the-way clickpad.

I've taken to disabling the device via Mouse Properties and then re-enabling it when I want to do mouse-based clicking.

Disable device via Mouse Properties

I'd like to hook up the toggling of this driver to a shortcut. I know how to do the shortcut key part using AutoHotKey, but don't know how to use the command line to disable a device. How do I do that?

Upvotes: 0

Views: 870

Answers (1)

meatspace
meatspace

Reputation: 913

1) Get DevCon from Microsoft

2) Use (x64 version) with devcon disable [DEVICENAME]

3) Enjoy!

Upvotes: 2

Related Questions