🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2524

Re: Screensaver wanted!

#2524
From: Brad Porter
Date: Wed, 06 Jan 1993 20:36
41 lines
2651 bytes
In article <1993Jan04.171924.22524@microsoft.com>
blakeco@microsoft.com (Blake Coverett) writes:
 
>
>In article <16B4A13B04.DRPORTER@SUVM.SYR.EDU> DRPORTER@SUVM.SYR.EDU (Brad Porter) writes:
>>Help!!!  Freeware or shareware that needs to be written!  Here's what's needed:
>>            A Windows screensaver, accessible through the Control Panel/Desktop
>>            area, that allows you to specify a program to run.  In other words,
>>            when I click setup I want to be able to input a command line just
>>            like when I click Run in the program manager.  There are numerous
>>            DOS screensavers, and I can write full-screen animations in VB,
>>            but none of these can be run through the Windows Screensaver
>>            area.  This can't be all that difficult to program if you're
>>            familiar with writing Windows screensavers, which I'm sure someone
>>            here is, but it would be invaluable in my opinion.
>
>It sounds like you have VB, in that case you can make screen savers directly
>as long as you know a couple of tricks.  Those .SCR files are really just
>Windows executables with a different name that obey a couple of standard rules.
>
>Make the module description "SCRNSAVE : Your Title Here".
>(In VB you do this by setting the Application Title when you make the .EXE)
>
>If your app is started with a "/s" switch display your saver.
>
>If your app is started with "/c" display your configuration dialog.
>
>Since you aren't using the SCRNSAVE.LIB that comes with the SDK you will
>need to manage exiting and passwords yourself.
>
>a section named [ScreenSaver.Your Title Here] in control.ini is the customary
>place to store your configuration info.
 
Wow, it works just as you said it would - and just as easily.  I'm continually
impressed with the power of Visual Basic.  It doesn't do everything, but it
does most of it.  One more question on this subject (for anyone):  Is there
an easy way to prevent Windows from spawning multiple Screensavers?  Or,
Is there an easy was to check and see if a copy of the program is already
running using VB commands?
                                        -Brad Porter
DRPORTER@SUVM
Technical Details
Message-ID: <16B4ED7A2.DRPORTER@SUVM.SYR.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!newstand.syr.edu!SUVM.SYR.EDU!DRPORTER
References: <16B4A13B04.DRPORTER@SUVM.SYR.EDU> <1993Jan04.171924.22524@microsoft.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!newstand.syr.edu!SUVM.SYR.EDU!DRPORTER
From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
Subject: Re: Screensaver wanted!
Message-ID: <16B4ED7A2.DRPORTER@SUVM.SYR.EDU>
Organization: Syracuse University
References: <16B4A13B04.DRPORTER@SUVM.SYR.EDU> <1993Jan04.171924.22524@microsoft.com>
Date: Wed, 6 Jan 93 15:36:53 EST
Lines: 41