?
Solved

Set a screensaver

Posted on 1997-12-13
4
Medium Priority
?
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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