It is currently March 29th, 2024, 6:36 am

Play a sound when Rainmeter starts

Get help with installing and using Rainmeter.
Hoosier
Posts: 21
Joined: November 10th, 2020, 5:21 pm

Re: Play a sound when Rainmeter starts

Post by Hoosier »

I like this idea, but where do I paste it?
Thanks,
KJ
jsmorley wrote: 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
User avatar
SilverAzide
Rainmeter Sage
Posts: 2588
Joined: March 23rd, 2015, 5:26 pm

Re: Play a sound when Rainmeter starts

Post by SilverAzide »

Hoosier wrote: October 20th, 2022, 10:56 pm I like this idea, but where do I paste it?
Thanks,
KJ
Anywhere you want; it doesn't really matter.
Gadgets Wiki GitHub More Gadgets...
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Play a sound when Rainmeter starts

Post by balala »

Hoosier wrote: October 20th, 2022, 10:56 pm I like this idea, but where do I paste it?
As SilverAzide said, doesn't really matter where in your code do you put the measure. But what does really matter is in which skin do you add the measure. Read carefully jsmorely's reply:
jsmorley wrote: June 14th, 2018, 10:16 pm 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...
This means you have to add the measure to a skin which is ALWAYS loaded when you start Rainmeter. And usually when you start Rainmeter, it loads the skins which have been loaded when Rainmeter has been closed (usually the skins loaded when you have shut down your computer). So, make sure to have a skin which is always loaded (might even have no visual elements, but in this case is a little bit harder to interact with it) and add the measure to the code of that skin.
Hoosier
Posts: 21
Joined: November 10th, 2020, 5:21 pm

Re: Play a sound when Rainmeter starts

Post by Hoosier »

Thanks for the info.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Play a sound when Rainmeter starts

Post by balala »

Hoosier wrote: October 25th, 2022, 2:27 pm Thanks for the info.
Did I help you? Were you able to get it working?