Discussion Locked

Disable screensaver for some programs

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I want to disable screensaver for some particular programs. I use Win2000 but other Win tip could help too. I have used one feature of shortcut for DOS executable: Properties-Misc-Allow Screensaver, but now I need disable screensaver for non-DOS program.

Regs,
Einius

5 replies

by maxwell edison

Here's a thought.

You could create a simple batch file to execute your program. A shortcut to that batch file could be placed on your desktop. It would look something like this:

Line 1 – disable screen saver
Line 2 – Call program(For example, Winword.exe)
Line 3 – enable screen saver

You would have to define the path to the program file in either the line that calls the program or perhaps in a set path command in a previous line.

I didn’t look into it in great depth, but I believe that the batch command that would disable a screen saver is the SetLocal command.

Example:

SetLocal | DisableExtensions
WinWord.exe
SetLocal | EnableExtensions

ENDLOCAL must be issued to restore the previous settings

My syntax is incomplete, but I think you’ll get the idea. You may have to do a bit of research to discover the exact syntax required, or perhaps another person could help in that regard.

See these links:

http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/winxppro/proddocs/setlocal.asp

http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/ntcmds.htm

http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/ntcmds.htm

http://www.ss64.demon.co.uk/nt/setlocal.html

http://www.ss64.demon.co.uk/nt/setlocal.html

(REMOVE SPACES from the pasted URL.)

A variation of this could be a batch file to change the registry screen saver setting to off.

http://www.umachandar.com/technical/CMDScripts/Main7.htm

http://www.clarksupport.com/Scripts.htm

(REMOVE SPACES from the pasted URL.)

Good luck,

Maxwell

by einius

Ideas are good but I had the same idea. Answer is good except I do not understand syntax, use etc. of setlocal so I choose registry.

by thechas

There is a registry patch that you can download from http://www.aumha.org/regfiles.htm

Perhaps, you can modify the patch to function with other programs also.

It will need to be placed into the registry settings for each program that you desire to disable the screen saver.

Chas

by einius

Link did not helped, but I made it by myself (who will give me points? :D)

1. Batch file:

regedit /s D:\...\scr_del.reg

regedit /s D:\...\scr_set.reg

2. scr_del.reg file
Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-2175825942-3572674735-500567579-1151\Control Panel\Desktop]
"SCRNSAVE.EXE"=-

3. scr_set.reg file:
Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-2175825942-3572674735-500567579-1151\Control Panel\Desktop]
"SCRNSAVE.EXE"="C:\\WINNT\\scrennsaverfile.scr"

User number depends on computer.

This discussion is closed to new replies.