DelphiFAQ Home Search:

How to create a Windows screen saver with Delphi

 

comments4 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

The following steps will create a Windows screensaver straight from a Delphi project.

  1. In the project file (*.dpr) add {$D SCRNSAVE } after the uses clause.

  2. On the main form, turn off the border and icon controls. In the activate method set the form left and top to 0, and set the Windowstate to wsMaximize.

  3. In the form create method, set the Application.OnMessage to a method that controls the deactivation of the screen saver. Set the Application.OnIdle method to whatever display method for the saver.

  4. In the form create method the command line should be tested for /c and /s. These are the command line parameters windows uses to define whether the screensaver should run or configure. (/c is for configuration)

  5. Compile the program, and rename the .exe to .scr. Move it to the windows directory, and it should show up in the control panel.


Comments:

2005-11-30, 06:19:37
anonymous from Ireland  
rating
2007-11-23, 07:05:43
jj from Netherlands  
j
2008-02-23, 15:33:45
anonymous  
Thank you very for your instructions.
I've used them to create my <a href=' http://www.softlake..t;freeware Fractal Screen Saver</a>.
2008-02-23, 15:35:02
anonymous  
Oh Sorry, the link is:
http://www.softlake..saver.htm

<a href=' http://www.softlake..gt;Fractal Screen Saver</a>.

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.