PDA

View Full Version : disabling screen saver



Pocus
20-03-2006, 08:51 AM
Hi all,

I would like to disable the screen saver, and optionnally the energy reduction thingy too (though I dont think it would crash the game).

I tried to have the mouse move one pixel every 5 seconds so that a movement is spotted, but apparently the screen saver don't care ;)

Any nice function to call to disable and the re-enable the thing?

TIA.

Pocus
20-03-2006, 09:30 AM
SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, nil, 0);

or

SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 1, nil, 0);

to set it actives.

:lol: