Solved

Set a screensaver

Posted on 1997-12-13
4
200 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

22 Experts available now in Live!

Get 1:1 Help Now