home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4653 < prev    next >
Encoding:
Text File  |  1993-01-06  |  2.5 KB  |  52 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!psinntp!newstand.syr.edu!SUVM.SYR.EDU!DRPORTER
  3. From: DRPORTER@SUVM.SYR.EDU (Brad Porter)
  4. Subject: Re: Screensaver wanted!
  5. Message-ID: <16B4ED7A2.DRPORTER@SUVM.SYR.EDU>
  6. Organization: Syracuse University
  7. References: <16B4A13B04.DRPORTER@SUVM.SYR.EDU> <1993Jan04.171924.22524@microsoft.com>
  8. Date: Wed, 6 Jan 93 15:36:53 EST
  9. Lines: 41
  10.  
  11. In article <1993Jan04.171924.22524@microsoft.com>
  12. blakeco@microsoft.com (Blake Coverett) writes:
  13.  
  14. >
  15. >In article <16B4A13B04.DRPORTER@SUVM.SYR.EDU> DRPORTER@SUVM.SYR.EDU (Brad Porter) writes:
  16. >>Help!!!  Freeware or shareware that needs to be written!  Here's what's needed:
  17. >>            A Windows screensaver, accessible through the Control Panel/Desktop
  18. >>            area, that allows you to specify a program to run.  In other words,
  19. >>            when I click setup I want to be able to input a command line just
  20. >>            like when I click Run in the program manager.  There are numerous
  21. >>            DOS screensavers, and I can write full-screen animations in VB,
  22. >>            but none of these can be run through the Windows Screensaver
  23. >>            area.  This can't be all that difficult to program if you're
  24. >>            familiar with writing Windows screensavers, which I'm sure someone
  25. >>            here is, but it would be invaluable in my opinion.
  26. >
  27. >It sounds like you have VB, in that case you can make screen savers directly
  28. >as long as you know a couple of tricks.  Those .SCR files are really just
  29. >Windows executables with a different name that obey a couple of standard rules.
  30. >
  31. >Make the module description "SCRNSAVE : Your Title Here".
  32. >(In VB you do this by setting the Application Title when you make the .EXE)
  33. >
  34. >If your app is started with a "/s" switch display your saver.
  35. >
  36. >If your app is started with "/c" display your configuration dialog.
  37. >
  38. >Since you aren't using the SCRNSAVE.LIB that comes with the SDK you will
  39. >need to manage exiting and passwords yourself.
  40. >
  41. >a section named [ScreenSaver.Your Title Here] in control.ini is the customary
  42. >place to store your configuration info.
  43.  
  44. Wow, it works just as you said it would - and just as easily.  I'm continually
  45. impressed with the power of Visual Basic.  It doesn't do everything, but it
  46. does most of it.  One more question on this subject (for anyone):  Is there
  47. an easy way to prevent Windows from spawning multiple Screensavers?  Or,
  48. Is there an easy was to check and see if a copy of the program is already
  49. running using VB commands?
  50.                                         -Brad Porter
  51. DRPORTER@SUVM
  52.