Thursday, May 5, 2011

Code for avoiding lock/Screensaver.

Set WshShell = WScript.CreateObject("WScript.Shell")
count= 1
For i= 0 To 60
WshShell.SendKeys "{F6}"
Wscript.Sleep 180000
count = count+1
Next

This will keep hitting F6 Key periodically to avoid system from sleeping/locking

1 comment:

  1. An ios developer course prepares learners for industry-level iOS roles. It covers app architecture and deployment strategies. This ios developer course enhances practical coding expertise. It includes structured assignments and projects. Students gain debugging experience. It supports long-term career success.

    ReplyDelete