#1
|
|||
|
|||
Help, I need a simple timer to beep every 20 minutes
Hi, I need a simple timer program or .vbs file or anything to beep every 20 minutes so I don't get eyestrain.
I know it can be done very easily in windows scripting but I don't know how to do it. If I have to I can code it but that would mean installing visual basic or visual c++ or something and that is such a pain in the butt I was just wondering if anybody out there could do it for me or point me to a vbs tutorial or something. Thanks. |
#2
|
|||
|
|||
Re: Help, I need a simple timer to beep every 20 minutes
Anybody else is wondering here is a simple one paste in notepad and rename timer.vbs and it will go off every 15 minutes.
-------------------------------- cut below -------- '************************************************* ************** 'timer.vbs 'wscript.exe has to be terminiated to stop this ' the sleep is in milliseconds, 1 min =60000 For x=1 to 10000 ' Just do over and over Set oShell = CreateObject("Wscript.Shell") sWaveFile = "%windir%\media\Windows XP Startup.wav" oShell.Run "sndrec32 /play /close """ & sWaveFile & """",0,True WScript.Sleep 15*1000*60 Next '************************************************* ************** |
Thread Tools | |
Display Modes | |
|
|