I want to create a simple batch file that will press a key automatically so that my computer won't automatically shut down after a long time of being away from the keyboard. Is that possible?
My operating system is Windows Vista.
|
I want to create a simple batch file that will press a key automatically so that my computer won't automatically shut down after a long time of being away from the keyboard. Is that possible? My operating system is Windows Vista.
| |||||
feedback
|
|
First, I'd recommend going to the Power control panel and just setting your computer to never sleep or shutdown after an inactivity period. If you still want to achieve what you specified, you can easily use a Windows Scripting Host (WSH) script, written in either JavaScript or VBScript.
| |||
|
feedback
|
|
Rather than pressing keys, there are apps that will temporarily prevent your computer from going to sleep:
| |||
|
feedback
|