Thread: Screen Saver

  1. #1
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

    Screen Saver

    How would you go about writting a screen saver. Im thinking something simple like displaying an image.

    Does anyone have any resources that might help with this?
    My Website
    010000110010101100101011
    Add Color To Your Code!

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Apparently, screen savers are just .exe files renamed with a .scr extension. From wotsit:
    Windows .SCR screen savers
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    SCR files are nothing more complex than .EXE files with the
    extension SCR. Windows calls the .SCR file with two command-line
    options:

    /s to launch the screensaver
    /c to configure the screensaver

    For the windows control panel to recognise the screensaver, the program's module description string must begin with SCRNSAVE: (in uppercase). So, if writing a Visual Basic screensaver, simply set the application title to something like "SCRNSAVE:Test Screensaver"

    To create a new screen saver simply write a program that checks the
    command-line option when starting and performs the appropriate
    action. The display should use a full-screen window (usually with a
    black background) and should end when any key is pressed or when the
    mouse is moved.

    When the program is compiled, rename the .EXE to .SCR and put it
    into the Windows directory so it can be found by the screensaver
    selection dialog in Windows.

    Happy screensaving!

    -----------------------------------------------------------------
    Paul Oliver with thanks to Michael Poxon.
    8th December 1996
    This is pretty old information, so I suppose it might have changed :shrug:
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Broadly speaking, that's true (as in, it'll work) but to be well-tied into Windows and make your life a bit easier it should also handle procedures such as ScreenSaverProc and RegisterDialogClasses.

    It's hidden away in MSDN, but it's here.

  4. #4
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Quote Originally Posted by SMurf
    Broadly speaking, that's true (as in, it'll work) but to be well-tied into Windows and make your life a bit easier it should also handle procedures such as ScreenSaverProc and RegisterDialogClasses.

    It's hidden away in MSDN, but it's here.
    SMurf thanks for the link.
    My Website
    010000110010101100101011
    Add Color To Your Code!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM