本帖最后由 小小菜鸟 于 2021-12-7 20:00 编辑
- @echo off
- taskkill /f /im wscript.exe
- echo "Sleep mode is now enabled again."
- timeout 5
复制代码
- set wsc = CreateObject("WScript.Shell")
- wsc.Popup "Sleep Mode Disabled.", 3, "NoSleep"
- Do
- WScript.Sleep (60*1000)
- wsc.SendKeys ("{SCROLLLOCK 2}")
- Loop
复制代码 GitHub上找到的
批处理是停止vbs的 |