[python-win32] How to say windows run screensaver?

Jonathan Rivera jargeek at gmail.com
Fri Jan 23 23:34:19 CET 2009


Hello all,

i need to run a program to ask for a password, but i need this program
will be the only accessible window on the screen, so i want to lock
the screen but no my window.
i see an example in vb and it say i may to use this:

' Tell the system a screen saver is running.
SystemParametersInfo SPI_SCREENSAVERRUNNING, True, prev_value, 0

The problem is that when i use:

win32gui.SystemParametersInfo(win32con.SPI_SCREENSAVERRUNNING, True)

it say: Action 97 is not supported yet

Do you know if are any other way to do the same thing?

regards.


More information about the python-win32 mailing list