VBS implementation of the script to remind you to rest regularly

Time:2020-9-15
Copy codeThe code is as follows:
set WshShell = WScript.CreateObject(“WScript.Shell”)
‘dialog title
Alerttitle: “regular reminder”
‘remind content, vbnewline is the newline character
Alerttext = vbnewline & vbnewline & “take a break and move your arms, neck and waist. “& vbnewline & vbnewline & vbnewline & vbnewline & vbnewline & vbnewline
For I = 1 to 12’12 is the number of reminders
     WScript.Sleep (1000 * 60 * 45)’every 45 minutes
    msgbox alerttext,4096,alerttitle
next

Save the above code as: regular reminder. VBS, and then double-click the remote, the process will have a wscript.exe He won’t remind you when it’s over.