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.

Recommended Today

Understand mybatis step by step through the project

Reprint please be sure to indicate the source, original is not easy! Related articles:Understand mybatis < 1 > step by step through the project All code address of the project:Github-Mybatis Mybatis solves the problem of JDBC programming 1. The frequent creation and release of database links results in the waste of system resources, which affects […]