Originally posted by Rekd I can change it in the Mouse Options dialog and it updates the registry. I can't change the registry and have it update. Mayhaps there's another setting that goes with it? |
It is the correct registry key, but you need to send a WM_SETTINGSCHANGE for it to take effect.
I wrote a small commandline utility that will let you change the snap to setting without rebooting.
http://ullberg.us/files/MouseControl.zip
usage:
MouseControl.exe /snaptodefault [true|false]
if you run it without any command line parameters at all it will toggle the setting.
disclaimer:
I wrote this in 5 minutes, it looks like it is working fine for me on windows 2000, but there may be bugs. Some other restrictions are that the command line parameters need to be in lower case and you also need the .NET framework 1.1 installed.
Let me know if you dont want to install the .net framework and i'll write a c++ version instead.
hope this helps
edit: Changed the link to a zipfile