var winshell = WScript.CreateObject("WScript.Shell");

function shutdown30()
{
 WScript.Sleep(1000*60*30);
/*winshell.SendKeys("^+{ESC}");
WScript.Sleep(3000);
winshell.SendKeys("%f");*/
 winshell.SendKeys("^{ESC}{UP}~{DOWN}~");
}

if(winshell.Popup("Are you sure?",30,"Shutdown in 30 min",4+32)!=7)
{
 shutdown30(); 
}

 

如果要取消关机,打开任务管理器,终止windows script host的进程。

相关文章:

  • 2021-05-05
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-10-15
  • 2021-12-13
相关资源
相似解决方案