Originally published on: Wed, 09 Dec 2009 19:13:10 +0000
Several weeks ago, I posted code for a utility that prevents a Windows screen-saver from firing by simulating mouse motion ( http://www.mailsend-online.com/blog?p=47 ).
Today, I'm providing a short WSH JavaScript script that will invoke the default screen-saver. I noted a search for similar functionality that led to my blog. This post will be included in the "By Popular Demand" category of items requested via a search-engine.
runsaver.js
To invoke this script, you may enter one of the two following command-lines:
CScript will run the console version of the WSH interpreter engine; WScript will run the GUI version and will not display a console window.
You may create a shortcut to this script by using wscript.exe as the program to run and runsaver.js as the sole parameter. You might need to specify a full path for the runsaver.js script in the shortcut.
Unless otherwise noted, all code and text entries are Copyright ©2009 by James K. Lawless.
Save to del.icio.us
Save to StumbleUpon
Digg it
Save to Reddit
Share on Facebook
Share on Twitter
More bookmarks
Subscribe!
Auto Save Clipboard Images Redux
Extending SpiderMonkey JavaScript on Windows
Rhino JavaScript to EXE with launch4j
Compiling Rhino JavaScript to Java
Directory Traversal in Rhino JavaScript
A Command-Line MP3 Player for Windows
Auto Save Images from the Clipboard
Java in a Windows EXE with launch4j
An Interview with Tom Zimmer: Forth System Developer
Setting Windows Console Text Colors in C
An Interview with Tom Zimmer: Forth System Developer
Embedding JavaScript in a Batch File
Learning Z-80 Assembly Language on the TRS-80
COM Scripting in C by way of JavaScript
Extending SpiderMonkey JavaScript on Windows
Mad Schemes : Learning Lisp via SICP
MicroISV on a Shoestring
DadHacker
The Bottom Feeder
Writin' That Code!
The Recursive ISV
The Thomsen Blog
Prototypically Speaking
The Reinvigorated Programmer