When I use my laptop trackpad, I want acceleration, but when I have a connected mouse, I usually want it. I could not find a quick way to make changes, so I would like to make a simple application that allows you to enable or disable it with the click of a button. Does anyone know how to disable or enable mouse acceleration in Windows, either through any COM-systems or system function (any language), or a command-line program?
For clarification, here is the setting that I would like to change:

source share