Switch to the dark side!

Rainmeter

Latest Discussion
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago
More...

Post a new topic



1/4 hr sound file?

Avatar-50x50
d4l3d says:

I've cobbled together a clock and now would like to know how to set up a sound file to chime on the 1/4 hr. If possible, please be detailed. I don't know what I'm doing. :-)

03:15 am, Monday, January 19, 2009 (8 years ago)
3297
Yalishy says:

Well, I would do like this :

I'd set the rainmeter update to be refreshed once per second (Update=1000 under the rainmeter section of your skin), I would add a measure "Counter" with a maximum value of 900 (=15*60), and a "IfEqualValue=900" ,"IfEqualAction=PLAY [soundfile]"

03:39 am (8 years ago)
Avatar-50x50
d4l3d says:

Sorry it took so long to reply. I completely forgot about this query. Thanks Yali. I'll try that as soon as I get a bit of time to "play". I'm sure I wouldn't have figured out this structure on my own.

02:53 pm (8 years ago)
Avatar-50x50
d4l3d says:

Well. I new I wasn't going to get this right. Have you set this up yourself? What I have isn't working and I can't find any mention of Counter in the manual.
This is what I have at the top of the ini:

[Rainmeter]
Update=1000
Measure=Counter
Counter=900
IfEqualValue=900
IfEqualAction=PLAY [FNC01_34.WAV]

Part of my problem is that I'm learning by piecing together other people's code and their's may be sloppy or worse. I have limited understanding of the structure.

01:19 am (8 years ago)
Avatar-50x50
d4l3d says:

I finally stumbled on Counter under Calc section.
MaxValue; I completely missed your reference to it.

[Rainmeter]
Update=1000
Measure=Counter
MaxValue=900
IfEqualValue=900
IfEqualAction=PLAY [FNC01_34.WAV]

Still not working. Probably less close than I was before :(
Someone please help. I need to see it to understand it.

06:18 pm (8 years ago)
Avatar-50x50
yoc says:

Hello!

Try this

[Rainmeter]
Update=1000

[MeasureCalc]
Measure=Calc
Formula=MeasureTimeM
IfEqualValue=15
IfEqualAction=

[MeasureCalc2]
Measure=Calc
Formula=MeasureTimeM
IfEqualValue=30
IfEqualAction=

[MeasureCalc3]
Measure=Calc
Formula=MeasureTimeM
IfEqualValue=45
IfEqualAction=

[MeasureCalc4]
Measure=Calc
Formula=MeasureTimeM
IfEqualValue=60 or 00 <---------------> try wich is a good
IfEqualAction=

-------
MeasureTimeM the Measure for minutes
Ex:
[MeasureTimeM]
Measure=Time
Format="%M"

If you want to play the sound I think you need to use Winamp plugin
Sorry I can't make it

I think have easiest way but I found this.
I hope this work and help you a little

02:47 pm (8 years ago)
Avatar-50x50
d4l3d says:

Thanks yoc. Will play with this as soon as I find some time.

There is a PLAY=[soundfile] that is supposed to work on it's own.

We'll see.

11:41 am (8 years ago)
Avatar-50x50
d4l3d says:

Yoc,
Sorry it took so long to get back (health issues).

The short answer; this works!

For some reason I can't keep a clock accurate on my system unless I set Update way down. In my case to 50.

To play a sound, all you need to do is place a wav file in the specific folder and in the ini put:
IfEqualAction=PLAY [*****.WAV]
wherever you've shown it in your example. The soundfile name needs to be exact, with its extension and I think it is case sensitive. I like that you've set it up so that a different soundfile can be used every 15 min.

Temporarily, I put this in a little graphics skin I already had on my desktop so I can exit it and kill the sound should I need to without effecting my clock display. Gonna make a classier solution for this when I can find more time to play.

Thank you

03:03 pm (8 years ago)
Avatar-50x50
d4l3d says:

Update.
Looks like I spoke too soon. Top of the hr doesn't work for me with 00 or 60. Will experiment. Any suggestions would be appreciated.

07:07 pm (8 years ago)
Avatar-50x50
d4l3d says:

Update2.
I originally was using a separate soundfile for the hr.
seems you can only use 1 sound per ini. So, now it works but it looks like I'll have to make separate inis for each sound unless someone knows how to trigger more than 1 sound at different times in one ini.

10:11 pm (8 years ago)
Avatar-50x50
d4l3d says:

Disregard most of what i said. Everything needed is here:

05:53 am (8 years ago)
 
   Arrow_up_small Top

Reply to this topic

You must register and become a member to post a reply.