topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 3:30 am
  • Proudly celebrating 15+ 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

Last post Author Topic: FINISHED: Hourly chime software (like Cuckoo for Mac)  (Read 44798 times)

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
FINISHED: Hourly chime software (like Cuckoo for Mac)
« on: July 08, 2017, 03:28 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: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #1 on: July 08, 2017, 12:38 PM »
:) Chime plays a sound file or tells the time on the hour and every x minutes.

Chime.jpgFINISHED: 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
21.07.2017: Added volume bar. @orbis. Removed a bug affecting playing individual hour files. @nogojoe
16.08.2017: Changed timing
21.10.2017: Added checkbox to ignore the volume

Skrommel
« Last Edit: October 21, 2017, 12:12 PM by skrommel »

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #2 on: July 08, 2017, 08:39 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 PM by stisev »

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #3 on: July 08, 2017, 10:13 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: 3,612
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #4 on: July 09, 2017, 03:32 AM »
Just to confirm: I've tested it here on Win10, and it worked just fine, right out of the box.

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #5 on: July 09, 2017, 08:53 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?


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: 851
    • View Profile
    • Dr Andus's toolbox
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #6 on: July 09, 2017, 09:45 AM »
If you're a Chrome user, there is also the Cool Clock extension in the Chrome Web Store that can do this.

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #7 on: July 10, 2017, 09:40 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 AM by stisev »

skwire

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

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

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #9 on: July 10, 2017, 09:48 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

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #10 on: July 11, 2017, 01:58 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: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #11 on: July 17, 2017, 04:58 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
« Last Edit: July 21, 2017, 04:56 AM by skrommel »

dcsev

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 182
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #12 on: July 17, 2017, 05:00 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: 169
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #13 on: July 17, 2017, 10:49 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.
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy
« Last Edit: July 17, 2017, 11:03 PM by nogojoe »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #14 on: July 18, 2017, 10:54 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 21, 2017, 04:56 AM by skrommel »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #15 on: July 18, 2017, 10:58 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: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #16 on: July 18, 2017, 11:37 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.
« Last Edit: July 21, 2017, 04:55 AM by skrommel »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #17 on: July 18, 2017, 11:40 AM »
 :up:

anandcoral

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 777
    • View Profile
    • Free Portable Apps
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #18 on: July 19, 2017, 05: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: 169
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #19 on: July 20, 2017, 01:01 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


Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy

orbis

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 56
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #20 on: July 20, 2017, 02:55 PM »
Hi, Skommel,

Just found this. What an excellent little program!

How possible would it be to have it use an independent volume control, so I could have, say, music louder, and this softer?

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #21 on: July 20, 2017, 03:06 PM »
How possible would it be to have it use an independent volume control, so I could have, say, music louder, and this softer?

can this not be done via the volume mixer?

Screenshot - 2017-07-20 , 22_08_05.pngFINISHED: Hourly chime software (like Cuckoo for Mac)
Tom

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #22 on: July 20, 2017, 03:46 PM »
In cases like this I think the simpler thing is find a utility that can change the volume of your chime wav files to be what you want.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #23 on: July 21, 2017, 04:55 AM »
 :) Added a master volume control, orbis, I'll see if I can add a more targeted volume solution. Also, I found the error in the hourly files code, nogojoe, and I added a checkbox to choose between the play options.

orbis

  • Supporting Member
  • Joined in 2017
  • **
  • default avatar
  • Posts: 56
    • View Profile
    • Donate to Member
Re: FINISHED: Hourly chime software (like Cuckoo for Mac)
« Reply #24 on: July 21, 2017, 11:32 AM »
Many thanks indeed, skrommel!