前端之家收集整理的这篇文章主要介绍了
vb script for a alarm,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
OneHourTimer
Sub OneHourTimer
For i = 1 To 2
Set wsShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 25*60*1000
MsgBox "Done for Step [ " & i & " ],take a 5 mins break~!","Break Reminder"
WScript.Sleep 5*60*1000
MsgBox "Ready to go on the next step ? ","Continue Working"
Next
WScript.Quit
MsgBox "亲~!" & vbcrlf & vbcrlf &"You have been working for ONE-HOUR,please take a 15 mins break,and then start another session~~!","Kindly Reminder"
End Sub