Batch file to modifiy the screen saver delay

  • Thread starter Thread starter pascalv
  • Start date Start date
P

pascalv

Hello,

Would somebody know if it is possible to change the screen saver delay
from a batch file?
(or even from the Windows command line or from Excel VBA)


Thanks for any hint!

Pascal
 
On 5/1/2007 10:05 AM On a whim, (e-mail address removed) pounded out on
the keyboard
Hello,

Would somebody know if it is possible to change the screen saver delay
from a batch file?
(or even from the Windows command line or from Excel VBA)


Thanks for any hint!

Pascal

Hi Pascal,

Doesn't appear to be any options for that:

http://support.microsoft.com/kb/182383


--
Terry

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
[[email protected]]s message :
Would somebody know if it is possible to change the screen saver delay
from a batch file?

VBScript:

Set ws=CreateObject("WScript.Shell")
ws.Run "rundll32.exe Shell32.dll,Control_RunDLL desk.cpl ,1",1
while not ws.AppActivate("Display properties")
wscript.sleep 100
wend
ws.SendKeys "%w"
ws.SendKeys "12" '' minutes
ws.SendKeys "~"

Good Luck, Ayush.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top