What are Coding Snacks?

Coding Snacks represent the best of DonationCoder.

On a special section of our forum, anyone can post an idea for a small custom utility/program.

Coders who hang out on our forum keep an eye out for interesting requests and when they see one that catches their interest, they code it and release it to the public for free.

People who find the tools useful are encouraged to donate directly to the coders to show their appreciation.

Forum Links:

  • Browse completed coding snacks: here.
  • Browse and submit new requests: here.
Latest Forum Posts

URL Snooper Opinions on FileForum
What cant I say thats good about this program? I mean, it does everything its designed to do and it does it well. Very seldom does a program of this caliber cross the internet. If you are sick of having to hunt down a url to a media file, use this, it will save you loads of time.
FileForum image

What are Coding Snacks?

Coding snacks are small custom utilities written by coders who hang out on DonationCoder in response to requests posted on our forum.

You are viewing a specific blog item. Click here to return to the main blog page.

Coding Snack: Toggle mouse acceleration with a simple program

2m5m6fn.jpg
My annoyance is fairly straightforward, as well as (I would hope) its solution:
I want to toggle this with a hotkey:

THE STORY:

I bought a touchpad for my desktop to combat RSI. It's... ok, I guess. See, the driver that it comes with doesn't actually recognize the touchpad, which means that Windows sees it as a mouse. This isn't a huge problem; it works fine. Though without the driver, it lacks some customizable options, I can live with it. My mouse remains plugged in, since I will be swapping between the two devices based on the tasks I am doing.

The problem is that I now have two devices that run on the same control panel settings, and physically are two devices with different kinds of sensitivity.

The touchpad actually causes more strain without the "Enhance pointer precision," option enabled, since moving the pointer requires repeated 'scrubbing' with the fingers. With the feature enabled, I can move the pointer much more easily while retaining control.

However, this setting is far too sensitive for my mouse, which flies all over the screen like an out of control fighter plane.

To switch devices, I have to launch the Mouse applet, toggle the "Enhance pointer precision" setting manually, then resume using my input device. Without a helpful shortcut, I have to do this many times a day.

PROBLEM: Two pointing devices on one system, one that needs mouse acceleration, the other doesn't. Need an easy way to toggle the "Enhance pointer precision" setting to aid in switching between the two devices.

SOLUTION: A small program that launches, toggles the "Enhance pointer precision" setting from the Mouse control panel applet, and then closes itself. (If the setting is active, it deactivates it. If it's inactive, it activates it.)

Since this is an issue I've found with laptops I've used as well, this could be useful beyond my specific use case. I've often had to resort to touchpad on the go, and later dock, to find that my mouse is flying uncontrollably until I toggle this setting off.

Since I already use a decent hotkey manager, I don't need this to be a running program. Ideally, it would just execute, toggle the setting, and close. I can call upon the program when I need it.

BONUS: The ability to store actual mouse settings as profiles, and toggle in between them with user-configurable hotkeys. This is far beyond my own needs, of course, but this might be a more interesting challenge for some.

Thanks for your time, o programmers of tiny things.

Click here to read more and download the utility written by dc member Skwire..



Share on Facebook
submit to reddit