$time = InputBox ( "定时关机", "请输入时间(单位:分钟)后关机",10,'',200,120)
If StringIsInt($time) Then
Sleep($time*60*1000)
Shutdown(9)
;MsgBox(4096,"关机提醒",$time & "分钟后将关闭计算机",5)
TrayTip("要下班了",$time & "分钟后将关闭计算机!",30,1)
Sleep(5000)
;$a=$time*60
;Run("shutdown -s -t "&$a)
Else
MsgBox(4096,"警告", "输入错误,请重新输入",5)
EndIf
© 版权声明
THE END
暂无评论内容