[python-win32] Programmatically turn off mouse auto-positioning
Hi, In the control panel, under mouse settings, there is a checkbox to automatically move the mouse to the "default button in a dialog box". Is there a way to programmatically turn this off/on using Python? I'm referring to windows 7/8. Thanks! ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Programmatically turn off mouse auto-positioning
On 04/02/2014 18:51, reckoner wrote: In the control panel, under mouse settings, there is a checkbox to automatically move the mouse to the "default button in a dialog box". Is there a way to programmatically turn this off/on using Python? I'm referring to windows 7/8. While I don't know the answer directly, a pound to a penny it's basically a registry entry. If you either search for that, or just use process explorer or something similar to monitor registry changes, you can then use the built-in winreg module or win32api's registry functions to achieve the same effect. TJG ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Programmatically turn off mouse auto-positioning
reckoner wrote: > In the control panel, under mouse settings, there is a checkbox to > automatically move the mouse to the "default button in a dialog box". > > Is there a way to programmatically turn this off/on using Python? I'm > referring to windows 7/8. It would be extremely bad form for you to do so. That's a user preference. I think it's a silly preference, but if that's what the user wants, it is NOT your place (as an application) to contradict him. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Programmatically turn off mouse auto-positioning
Am 04.02.2014 19:51, schrieb reckoner: Hi, In the control panel, under mouse settings, there is a checkbox to automatically move the mouse to the "default button in a dialog box". Is there a way to programmatically turn this off/on using Python? I'm referring to windows 7/8. Thanks! SystemParametersInfo with the SPI_SETSNAPTODEFBUTTON parameter. No idea if pywin32 exposes this but there's always ctypes. Thomas ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32