Results 1 to 2 of 2

Thread: ScreenSaver

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    How can i make a configuration form for my screen saver???
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Step1 Make your configuration form as a standard form in your screensaver project, make sure it set's it's properties in the registry or in an INI file so you can get at them when you run the screensaver.

    When you program the screensaver it should start with Sub Main() the first theing you should do is get the command line.

    use
    Code:
    strCommand=LCase$(Left$(Command$,2))
    to get the first 2 letters of the command line in lower case, the command line contains information on how the screensaver should be started

    the values you can get are

    /c Dispay the configuation screen
    /s Display a normal screensaver
    /p Display a preview

    if you get a /p somewhere in the command$ you will get a number, this is the hWnd of that lille window you get in the screensaver setting window that diplays a preview of the screensaver. If you can use the API then target all your drawing functions to this window, bearing in mind it's a lot smaller than the screen, If you can't use the API don't worry, just leave it blank.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width