Jump to content

Recommended Posts

Posted

You could try disabling it via the registry when your script starts (not guaranteed but worth a try):

; Remember current screen saver setting
Local $ScrnSaver = RegRead('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE')

; Disable if one is set
RegDelete('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE')

When your script finishes:

; Reset screen saver
If $ScrnSaver Then RegWrite('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE', 'REG_SZ', $ScrnSaver)
Posted

@lxp: this only works when you have admin-rights, i suggest by the way he asks that he hasn't got them B) nothing personal just a guess :o

I've created a script to automatically install about 7 pieces of software without user intervention, but the screen saver - when set on an XP machine to "go back to login screen" is sometimes causing problems.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...