Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Software (http://archives2.twoplustwo.com/forumdisplay.php?f=43)
-   -   Help, I need a simple timer to beep every 20 minutes (http://archives2.twoplustwo.com/showthread.php?t=333884)

PLOlover 09-10-2005 03:25 PM

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.

PLOlover 09-10-2005 04:11 PM

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

'************************************************* **************


All times are GMT -4. The time now is 06:09 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.