[python-win32] Programmatically turn off mouse auto-positioning

Thomas Heller theller at ctypes.org
Tue Feb 4 21:22:23 CET 2014


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



More information about the python-win32 mailing list