[clug] [Off topic - Windows] Screen locking inhibitor

Michael Cohen scudette at gmail.com
Mon Sep 1 11:38:40 GMT 2008

I think this bit of code works from the MSDN:

   <job id="vbs">
      <script language="VBScript">
         set WshShell = WScript.CreateObject("WScript.Shell")
         WshShell.Run "cmd.exe"
         WScript.Sleep 100

	 while 1
	  WScript.Sleep 100000
	  WshShell.AppActivate "cmd.exe"
	  WshShell.SendKeys " "


Put this in a file with a wsf extension and run it. Basically it
creates a new cmd.exe window and every 100 seconds it brings it to the
foreground and sends it a space. Thats enough to keep the screensaver
awake. BTW to stop it you need to kill the scripting service (it does
not have a GUI) - ctrl alt del find wscript.exe and kill it.


On Mon, Sep 1, 2008 at 7:16 PM, Hal Ashburner <hal.ashburner at gmail.com> wrote:
> A number of years ago when I was trying to understand how to get things done
> with a computer installed with Microsoft Windows I connected my newsreader
> to Microsoft's server.
> I found the people on the relevant Windows and Office newsgroups there to be
> every bit as well mannered, helpful and insightful as those who post here on
> the CLUG list. I think it was the thing I appreciated and enjoyed most about
> using computers in those days.
> In short, they are good people, who know this stuff without having to think
> very hard because they've tried it. I reckon ask them.
> http://www.microsoft.com/communities/newsgroups/default.mspx
> I hope people there wouldn't feel intimidated to post here with their Free
> software questions either.
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list