老司机 发表于 2024-2-3 08:47:06

防止系统进入睡眠模式

保存文件名:wscript.vbs

Set WshShell = WScript.CreateObject("WScript.Shell")

WScript.Sleep 5000
WshShell.SendKeys("{NUMLOCK}")
WScript.Sleep 5000
WshShell.SendKeys("{NUMLOCK}")

for i = 1 to 1800
WScript.Sleep 17000
WshShell.SendKeys("{NUMLOCK}")
WScript.Sleep 500
WshShell.SendKeys("{NUMLOCK}")
next

页: [1]
查看完整版本: 防止系统进入睡眠模式