Skip to main content
gamedev.net
🔒 Locked

Detecting screensaver?

Started by DevLiquidKnight May 11, 2003 at 9:46 PM 0 replies 300+ views
Original Post
DevLiquidKnight
DevLiquidKnight
Ok, I want to make a prog that starts when the screensaver starts and when it detects me coming back it says "Greetings, executor" with echos and stuff lolz... Don''t ask why i just think it would be cools and i want to make it For FUN anyone have any idea how to detect screensaver active or whatever? coder requires 0xf00d before continue().
Don''t click me! Killer Eagle Software
Colin Jeanne
Colin Jeanne
*For Win98 and above and Win2000 and above

BOOL isrunning;

SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, (PVOID)isrunning, 0);

If the screensaver is currently running, isrunning will be TRUE. If it is not then isrunning will be FALSE



Qui fut tout, et qui ne fut rien
Invader''s Realm

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.