Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to change windows screen saver in code...

Posted on 1999-07-08
3
Medium Priority
?
304 Views
Last Modified: 2010-05-02
I need to know how to change the windows screen saver in code or even in the registry...but perferably in code...thanks....I don't figure it's too hard, but I need to know quickly and this place is usually faster than searching:)  Thanks again.
0
Comment
Question by:sharmon
[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
  • 2
3 Comments
 

Expert Comment

by:Spax
ID: 1522944
C:\WINDOWS\SYSTEM.INI
SCRNSAVE.EXE=C:\WINDOWS\ScreenSaverFileName.SCR

As for changing it on the fly, probably an api or some such. Careful though, some virus checkers don't like unauthorized changing of screensavers.
0
 

Accepted Solution

by:
Spax earned 40 total points
ID: 1522945
It's much easier than I originally thought. Just simply editing the C:\WINDOWS\SYSTEM.INI file and changing the filename after SCRNSAVE.EXE= will effect the change your looking for. If your trying to change the screen saver from one that is already up an running on the users computer, you may be able to perform a sendkeys to fool the saver into terminating. I suppose if the sendkeys fails, you could just halt the screen saver task - but I don't know how far you would want to go to effect this change.

Again, MCAFFE virus checker keeps track of what screensaver was last set by the user and it may try and give the user a warning. For that you would need to look up and change the registry items. Hope that helps you out.
0
 
LVL 6

Author Comment

by:sharmon
ID: 1522946
That really isn't the clue I was looking for, I already knew that one, but anyhow, if I cannot find a better answer than that, I'll give you the points tomorrow........thanks..
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 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