Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to keep Computer Active

Status
Not open for further replies.

Debbilynn

Technical User
Dec 8, 2008
8
US
I need to run a script that will keep the computer active. I'd like it to simulate the space bar key being used. Sounds odd, but I have my reasons. Anyway, I have very, very limited knowledge about scripts. I have edited a few but never written one myself. The easier the better since I don't know all the lingo.

Any help you can provide would be deeply appreciated!
 
Set WshShell = CreateObject("Wscript.Shell")
Do
WshShell.SendKeys("1")
Wscript.Sleep 5000
Loop
'asif
Set WshShell = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top