PDA

View Full Version : windows screensaver


coolgroupsdotcom
09-03-2005, 05:00 AM
I was just wondering if anyone here knows how to make a Windows screensaver. I have an OpenGL graphics program I wrote that I'd like to make into a screensaver, but I'm not sure exactly how to do it.

Thanks.

mike
http://www.coolgroups.com/

Ed Mack
09-03-2005, 04:24 PM
(Some windows programmer is going to shoot me in a second for saying this, but hey talk is cheap!)

Just change the extension from .exe to .scr methinks

anubis
09-03-2005, 05:13 PM
That even works in general... :)

There are just some additional API calls to react on all the screensaver events (like mouse move/wake up). If you don't need to do that any .exe should be finde. I don't know about energy management though...

Kippesoep
09-03-2005, 06:17 PM
Check out this article (http://www.codeproject.com/bitmap/ballfusion.asp) on The Code Project.

coolgroupsdotcom
09-03-2005, 11:17 PM
Interesting. I'd like to see some info on how to make a screensaver the default and how to pop up the screensaver dialog. It seems almost none of the tutorials touch on this.

Check out this article (http://www.codeproject.com/bitmap/ballfusion.asp) on The Code Project.
20789

Kippesoep
09-04-2005, 06:52 AM
Interesting. I'd like to see some info on how to make a screensaver the default and how to pop up the screensaver dialog. It seems almost none of the tutorials touch on this.
20791


Microsoft themselves have some sample code on the screensaver configuration dialog on MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/scrnsave.asp).

Making a screensaver the default is probably done by changing some registry key. It's also a good way to p!ss of your users :unsure: (I know I hate it)

JapigeMan
09-04-2005, 01:44 PM
ehm, just my two cents:

I tried it myself, and it's pretty easy to make the fundamentals, just rename an exe to scr and you're kinda done.

The app is started with various commandline parameters depending on what is being requested from your screensaver (settings box, preview, or just the screensaver itself).
There are some specific screensaver win32 functions/parameters to take care of the little details, but you don't really need those to make a simple screensaver. (AFAIK)

I just made a little prog that logged the commandline parameters and went from there...that was in VB...like a zillion years ago in win95/98. *meeeeemories*

nappel
09-13-2005, 12:44 AM
Hi!
See here http://www.wischik.com/scr/examples.html

"If you already know a bit of Windows programming, this web site will help you turn your creativity into screen savers.... Demonstrates jpegs, transparent sprites, playing/sampling audio, using zipped data, using zips/bitmaps/audio embedded as resources, 3d OpenGL, multi-monitor support, and integrated installation/uninstallation....Includes project files for Visual C++6, Visual Studio .NET, Borland C++Builder 5 ...."