It is currently October 16th, 2018, 11:57 pm

Play a sound when Rainmeter starts

Get help with installing and using Rainmeter.
User avatar
AlphaUMi
Posts: 2
Joined: June 13th, 2018, 4:17 pm
Location: 127.0.0.1

Play a sound when Rainmeter starts

AlphaUMi » June 14th, 2018, 8:57 pm

Hi everyone!

This is mi first post, I am a long time Rainmeter user, not a skin creator, but confident with Rainmeter and skins configuration files. My question is the following: is it possible to make Rainmeter play a sound automatically as soon as a layout is loaded?

I know about the Play bang (not !Play, I know), but I couldn't get it to work for me. What I want to achieve is:

1. Rainmeter is closed, or PC is off.
2. Rainmeter starts, loads the layout, and play a sound.

I mean: it plays a sound automatically like a sort of "intro", without mouse clicks or user interaction. I would like to achieve this:

1. Or with a shortcut, with a command line parameter
2. Or attaching the Play bang to a section of a skin that is loaded when Rainmeter starts.

I hope someone can help me.
Cheers,

AlphaUMi
"Vitam impendere vero"
User avatar
jsmorley
Developer
Posts: 18088
Joined: April 19th, 2009, 11:02 pm
Location: Mt. Vernon, Virginia, USA

Re: Play a sound when Rainmeter starts

jsmorley » June 14th, 2018, 10:16 pm

Code: Select all

[MeasureOnLoad]
Measure=Calc
Formula=Counter
IfCondition=MeasureOnLoad = 1
IfTrueAction=[Play "#@#\Sounds\Wecome2.wav"]
UpdateDivider=-1
This will play the sound when the skin you put this in (it can be any skin you always load) is first loaded, which will be when Rainmeter is started...
Welcome2.WAV
You do not have the required permissions to view the files attached to this post.
User avatar
AlphaUMi
Posts: 2
Joined: June 13th, 2018, 4:17 pm
Location: 127.0.0.1

Re: Play a sound when Rainmeter starts

AlphaUMi » June 15th, 2018, 12:00 am

Oh yes, thank you! Really, sincerely, thank you a lot!!! :17good

And in the process I've learned the MeasureOnLoad... it's great, very useful. Thank you again!!! :great:
"Vitam impendere vero"
User avatar
jsmorley
Developer
Posts: 18088
Joined: April 19th, 2009, 11:02 pm
Location: Mt. Vernon, Virginia, USA

Re: Play a sound when Rainmeter starts

jsmorley » June 15th, 2018, 12:34 am

Glad to help.