Instant activate screensaver shortcut?

jctusmc03

Gawd
Joined
Dec 8, 2009
Messages
887
I want to be able to instantly activate my screen saver. Is there a .bat file that I can make to do this? Or how can I do it making a shortcut on my desktop?

Thanks. :D
 
Do you have Microsoft Office 2007 or earlier? If so you can create a shortcut to osa.exe with a -s switch and that will launch the current screensaver. They seem to have removed that file from Office 2010.
 
can't you run the scr file by double-clicking it?
create a shortcut to it?
not sure if that will lock the machine though
 
can't you run the scr file by double-clicking it?
create a shortcut to it?
not sure if that will lock the machine though

this is the best way to acheive what you want. .scr files are found in windows/system32.
 
can't you run the scr file by double-clicking it?
create a shortcut to it?
not sure if that will lock the machine though

this is the best way to acheive what you want. .scr files are found in windows/system32.

Yeah, this suggestion doesn't lock the machine, I just tried it out. Thanks for the suggestion though.

Is there a .bat that I can create, or some combination of keys that will bring on the regular screen saver with lock on resume by any chance?

Thanks again.
 
Code:
@echo off
rundll32.exe user32.dll, LockWorkStation
C:\Windows\System32\scrnsave.scr
cls

maybe?
supposedly though, the "rundll32.exe user32.dll, LockWorkStation" line can be problematic, but it appears to be the only way to lock a machine via command line.

http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=70
http://superuser.com/questions/21179/command-line-cmd-command-to-lock-a-windows-machine

second link has code for a small C++ app if you can get access to a compiler.

edit: oh, maybe.
can you create a shortcut to the screen saver on your desktop, then give it the hotkey for Winkey+L ?
Since Winkey+L is the hotkey for locking the machine.

edit2: nope, can't hotkey Winkey to a shortcut...
 
Last edited:
What about just windows key + L? I use it all the time when I walk away from my computer.
 
This batch kind of works. Screensaver runs, then when you move the mouse, it runs the lockworkstation line.

C:\Windows\system32\Screensaver.scr
rundll32.exe user32.dll, LockWorkStation

Would be easier to use WK+L and set your SS 1min.
 
WK+L doesn't work for me for some reason. I've pressed it a few times to try to lock the computer or whatever. But it isn't doing anything. Does the screensaver have to be activated first or something?
 
Back
Top