Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

VBScript writes a script that reminds you to rest regularly.

Shulou Source: shulou.com Published: 2022-06-03 06:31:47 10月01日 Update

Do you also forget to drink water and rest when you are busy at work? Want to write a gadget to remind yourself that there are many similar small desktop clock reminder software, the implementation is also very simple, the following is a few minutes to write with VBScript, prompt content written casually, want to customize, change it, new text copy the following code to save, suffix changed to .VBS double-click can be used.

Option expliciton error resume nextdim interval,delayTime,WshShell,idim context,Timeinterval = inputbox ("Please enter the reminder interval (in / minute):", "enter:", 30) if interval= "or IsNull (interval) then interval=30end ifdelayTime=interval*60000 set WshShell = WScript.CreateObject (" WScript.Shell ") context = vbnewline &" you have been working continuously "& interval&" minutes "& vbnewline &" take a break, move your arms, stretch your legs. " & vbnewline & vbnewline' reminders 12for I = 1 to 12 WScript.Sleep (delayTime) Time=Hour (now) & ": & Minute (now) &": & Second (now) if I

Tags: Work present tense content text eyes arm input dryness soreness health code function unit similar suffix that is tool clock time cup of water Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple macOS Docker OPPO Reno Microsoft