Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2005, 03:25 PM
PLOlover PLOlover is offline
Senior Member
 
Join Date: Jun 2005
Posts: 365
Default 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.
Reply With Quote
  #2  
Old 09-10-2005, 04:11 PM
PLOlover PLOlover is offline
Senior Member
 
Join Date: Jun 2005
Posts: 365
Default 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

'************************************************* **************
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:56 PM.


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