2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by alex-VX
0

On MS-Windows there is a system window message that you can process to indicate that you don't want the screensaver to become active. You can use it to monitor when the screensaver gets active. You must be in a GUI program, from a commandline python program it does not work.

But why not sleep() a while during the loop, this will prevent from using 100%CPU

0

On MS-Windows there is a system window message that you can process to indicate that you don't want the screensaver to become active. You can use it to monitor when the screensaver gets active. You must be in a GUI program, from a commandline python program it does not work.

But why not sleep() a while during the loop, this will prevent from using 100%CPU

ok so i found this code

SystemParametersInfo(SPI_GETSCREENSAVEACTIVE,0,tru e,0);

how do i use it what win32 module do i need to use

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.