$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
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-21 23:03 , Processed in 0.080628 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.