Play a sound every 00 and 30 minute marks

Post your working scripts, libraries and tools
User avatar
joshebosh
Posts: 5
Joined: 23 May 2016, 19:15

Play a sound every 00 and 30 minute marks

13 Aug 2018, 08:44

I wasnt happy with other scripts I found out there, so i figured i'd post my own...

I orginally went with playing a sound every 15 minutes, but I commented out those lines and went with every 30 minutes, on the top and bottom of hour. You can set the hours of operation, and set quarter hour marks if you uncommen/comment tick2 and tick4 (and swap the IF and WHILE lines). The while line is to sleep during the 00 and 30 ticks so you only hear the sound play one time during that 60 second window.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
Grendahl
Posts: 160
Joined: 30 Sep 2013, 08:21

Re: Play a sound every 00 and 30 minute marks

13 Aug 2018, 12:25

You could also do something like this:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

carno
Posts: 120
Joined: 20 Jun 2014, 16:48

Re: Play a sound every 00 and 30 minute marks

16 Sep 2018, 13:25

I have started testing Grendahl's TimeSpeak :) .

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Google [Bot] and 22 guests