Solved

Set a screensaver

Posted on 1997-12-13
4
201 Views
Last Modified: 2012-05-04
Hi,

I want to find out which screensaver is currently set in Win95 and set it to another one, does anyone know how ?

Thanks !
0
Comment
Question by:michaelsanders
4 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1353527
Try to use the WM_SYSCOMMAND message.
0
 
LVL 4

Accepted Solution

by:
d003303 earned 50 total points
ID: 1353528
Hi,
the current ScreenSaver is stored in the system registry.
Have a look at \HKEY_CURRENT_USER\Control Panel\Desktop.
The string value SCRNSAVE.EXE aliases to the complete path of the ScreenSaver executeable.
You can read and modify the value with a TRegistry-Object.

Have fun !
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1353529
This can be handy if you want to know everything about screensavers!

For ScreenSaver documentation, see Lucian Wischik's Page at...

http://classic.physiol.cam.ac.uk/scr/SCRB_TEC.HTM or
http://classic.physiol.cam.ac.uk/scr/SCRB_GEN.HTM

For sample sources, download Meik Weber's Saver from...

http://sunsite.icm.edu.pl/delphi/authors/a782.htm Hope this helps. Shuji maeda@nn.iij4u.or.jp

Have fun,
Regards,
Zif
0
 
LVL 1

Author Comment

by:michaelsanders
ID: 1353530
I checked out the registry before and now did it again at your specified location, nope, only some settings are there... I mean how long it takes before it should start, the wallpaper etc, but no SCRNSAVE.EXE. I did find this in the system.ini file and it appears to to change when I change the screensave. Maybe I should change that using the TIni object ? AnyWay I checked the site ziffnab proposed and found it should be in the ini file. Thanks ziffnab and d003303 ! CU!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 96
Reconfigure Delphi Install? 2 46
Error E2158 compiling with Delphi XE10 Seattle 2 88
Find and Replace Stream with 0s 8 57
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now