Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • July 20, 2017, 07:50:18 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Hourly chime software (like Cuckoo for Mac)  (Read 950 times)

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
IDEA: Hourly chime software (like Cuckoo for Mac)
« on: July 08, 2017, 03:28:23 AM »
I searched Google for 60 min + /r/software + Donation coder but couldn't find anything useful.
I want something like Cuckoo for Mac.
Requirements:
1) Simple.
2) MUST be portable (this is the reason I don't want to use Windows Task Scheduler as the settings are tied to Windows).
3) Must be able to choose mp3, wav, or m4a file for sound.
4) Decent interfaceknow if such an app exists?

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 895
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #1 on: July 08, 2017, 12:38:47 PM »
Chime plays a sound file or tells the time on the hour and every x minutes.  :)

Chime.jpgIDEA: Hourly chime software (like Cuckoo for Mac)

Chime is portable, it saves it's settings to Chime.ini, just copy the file to the folder you put the script in on your other computers.

Download and install AutoHotkey to run the script.
Save the script as Chime.ahk and doubleclick to run.

17.07.2017: Added code to the Browse button. @stisev.
18.07.2017: Added option to chime multiple times on the hour. @nogojoe
18.07.2017: The program checks for files 0.wav, 1. wav... 23.wav to be played on the hour. @mouser

Skrommel
« Last Edit: July 18, 2017, 12:06:31 PM by skrommel »

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #2 on: July 08, 2017, 08:39:22 PM »
skrommer to the rescue as usual. Was this coded for me or was it done before? Never seen this app from you before.

Some comments/questions
1) Play button doesn't seem to do anything with "C:\Windows\InfusedApps\Packages\Microsoft.MicrosoftSolitaireCollection_3.14.1181.0_x64__8wekyb3d8bbwe\Arkadium.Win10.DailyChallenges\Assets\Audio\badgeEarned.wav"
It says "playing soundfile" but nothing happens.  I've confirmed the directory has that sound file as winamp plays it just fine.

EDIT: I tried this file too but nothing happens when I hit play: http://i.imgur.com/j7bBpvz.png

2) Browse button does nothing

3) You mentioned that Chime can play a sound "on the hour" - is this really true? I  see options for Chime every 60 minutes, but that's not the same as on the hour right?
« Last Edit: July 08, 2017, 08:47:10 PM by stisev »

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,202
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #3 on: July 08, 2017, 10:13:21 PM »
After a quick peek in the code, the sound is played on the hour (the interval for that function starts from 00:00)
Code: Autohotkey [Select]
  1. next:=A_YYYY A_MM A_DD A_Hour 00 00
  2. ...
  3. nexthour:=next
  4. nexthour+=1,Hour
The above should make that clear.


Is Winamp configured as the default player? Or not? Do you have different audio-devices installed in your computer? I ask, because there can be some (unintended) configuration confusion going on, when this is the case. And could explain the silence.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,958
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #4 on: July 09, 2017, 03:32:26 AM »
Just to confirm: I've tested it here on Win10, and it worked just fine, right out of the box.

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #5 on: July 09, 2017, 08:53:29 AM »
After a quick peek in the code, the sound is played on the hour (the interval for that function starts from 00:00)
Code: Autohotkey [Select]
  1. next:=A_YYYY A_MM A_DD A_Hour 00 00
  2. ...
  3. nexthour:=next
  4. nexthour+=1,Hour
The above should make that clear.


Is Winamp configured as the default player? Or not? Do you have different audio-devices installed in your computer? I ask, because there can be some (unintended) configuration confusion going on, when this is the case. And could explain the silence.


1. Yes Winamp is default player.
2. Yes I have audio-devices but only one actually processes sound. Volumouse screeny: http://i.imgur.com/4felKwf.png     I use only USB DAC.   Shouldn't it, uh, use the default player like most apps?


Quote
Just to confirm: I've tested it here on Win10, and it worked just fine, right out of the box.

Thank you! That means it's probably my system. I will do some more testing  + in VM and report back. Thanks for the help guys. <3 <3 <3

dr_andus

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 843
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #6 on: July 09, 2017, 09:45:36 AM »
If you're a Chrome user, there is also the Cool Clock extension in the Chrome Web Store that can do this.

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #7 on: July 10, 2017, 09:40:10 AM »
If you're a Chrome user, there is also the Cool Clock extension in the Chrome Web Store that can do this.

It would have to be on a windows computer without Chrome, but also the problem with Chrome is that its extensions are notoriously non-portable (by google design).  Thanks for the suggestion.  I am hoping to Skrommel's solution working too.
« Last Edit: July 10, 2017, 09:47:55 AM by stisev »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,780
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #8 on: July 10, 2017, 09:45:25 AM »
I am hoping to skwire's solution working too.

In this case, I assume you mean Skrommel, right?

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #9 on: July 10, 2017, 09:48:24 AM »
I am hoping to skwire's solution working too.

In this case, I assume you mean Skrommel, right?


lol! yes... man.. I was using sPlayistmaker you made for me for the past 24 hours keep thinking your name :D

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #10 on: July 11, 2017, 01:58:13 AM »
Confirmed it works now. No idea what the problem was.   It just went off on the hour at midnight.  THANK YOU Skrommel!! <3 <3 <3

I'm going to use this to run on the HTPC in living room to replicate grandfather clock :)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 895
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #11 on: July 17, 2017, 04:58:16 PM »
Made just for you, stisev! :)

It's was a quick hack, so I forgot to put code in the browse button! Updated the code on top. I also uploaded an .exe-file.

Skrommel

stisev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 142
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #12 on: July 17, 2017, 05:00:37 PM »
Damn, you're so awesome. Thank you very much!

It's surprising that I couldn't find a portable lightweight utility that does this (and OSX does have it).

I'll re-download it and test it out asap!  My living room has an hourly chime again.  Now to find a decent sounding grandfather clock chime.

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 145
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #13 on: July 17, 2017, 10:49:43 PM »
Damn, you're so awesome. Thank you very much!

It's surprising that I couldn't find a portable lightweight utility that does this (and OSX does have it).

I'll re-download it and test it out asap!  My living room has an hourly chime again.  Now to find a decent sounding grandfather clock chime.

try
https://freesound.or...oedeshon/packs/7926/

You may have to get Skommel to modify the setup to allow each hour chime to the correct wav. file    then you would have the complete grandfather clock  .The sounds files are really authentic.
« Last Edit: July 17, 2017, 11:03:36 PM by nogojoe »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 895
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #14 on: July 18, 2017, 10:54:01 AM »
Added an option to play the sound multiple times on the hour, nogojoe. :)

I could maybe add a second sound file to make the clock sound reverb on the last chime. Or maybe 12 separate files?

Skrommel
« Last Edit: July 18, 2017, 11:42:32 AM by skrommel »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,217
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #15 on: July 18, 2017, 10:58:57 AM »
Maybe one way to let user customize the chime souds without adding any gui options, is simply to let user specify sound file "Whatever.wav", but before playing the sound file, check if "Whatever_X.wav" exists and play that if it does, where X = hour number from 0-23 (or 1-24 whatever).  That way if they want they could use a different sound file for each different hour of the day.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 895
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #16 on: July 18, 2017, 11:37:46 AM »
Added an option to play sound files 0.wav, 1.wav... 23.wav on the hour if they exist in the program's folder, mouser. :)

Or just 0 through 12, it checks if files >12 exists, and if not it chooses the earlier ones.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,217
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #17 on: July 18, 2017, 11:40:20 AM »
 :up:

anandcoral

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 462
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #18 on: July 19, 2017, 05:12:12 AM »
skrommel   :D

Age is just a number ! You proved it  :Thmbsup:

After so loooog years DC is again filled with useful codes. I am the one (but not the only) who has benefited the most from your codes and learn AutoHotkey.

Thank you.

Regards,

Anand

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 145
    • View Profile
    • Donate to Member
Re: IDEA: Hourly chime software (like Cuckoo for Mac)
« Reply #19 on: Today at 01:01:18 AM »
Added an option to play sound files 0.wav, 1.wav... 23.wav on the hour if they exist in the program's folder, mouser. :)

Or just 0 through 12, it checks if files >12 exists, and if not it chooses the earlier ones.
Hi Skommel     

I have downloaded wav files and have renamed them 0.wav, 1.wav... 23.wav as you have suggested but I am having no luck with them chiming on the hour I have the wav files in the same folder as the program.
I am running the AHK setup as the exe setup brings up a virus warning and quarantines the the exe.

it plays the chimes if you use play in the options setup .
This is the ini file :
[Settings]
interval=60
chime=Sound + Voice
silent1h=00
silent1m=00
silent2h=00
silent2m=00
soundfile=C:\Program Files\Chime\6.wav
repeat=1
voice=Microsoft Sam
voicetest=The time is <Time1>. Today is <Time2>.
time1=H:mm
time2=dddd d. MMMM yyyy
replace1a=:00
replace1b=o'clock
replace2a=.
replace2b=of
hidden=0


Regards nogojoe