It is currently April 20th, 2024, 1:04 am

play and stop audio files

Get help with installing and using Rainmeter.
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

ok, well I did exactly this

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1

[Variables]
Color0=255,150,129
Color1=255,220,172
Color2=192,255,164
Color3=154,255,210
Color4=137,197,255
Color5=159,137,255
Color6=255,174,234

[MeasureRandom]
Measure=Calc
Formula=Random
UpdateRandom=1
UniqueRandom=1
LowBound=0
HighBound=6

[MeterFlash]
Meter=String
FontSize=40
FontWeight=400
FontColor=[#Color[&MeasureRandom]]
SolidColor=0,0,0,1
AntiAlias=1
Text=Merry Christmas
DynamicVariables=1
LeftMouseUpAction=[PLAY "#@#Sounds\Christmas.wav"]
MiddleMouseUpAction=[PLAYSTOP]
and it's just white with no color changing, I'm not sure what version rainmeter I have on this laptop, I installed it a few months ago so I doubt it's fully updated since I only use it when at work
Cellinarac
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: play and stop audio files

Post by jsmorley »

Yeah, you must have the latest beta installed for that code to work. It's currently Release Candidate 1 of version 4.1
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

jsmorley wrote:Yeah, you must have the latest beta installed for that code to work. It's currently Release Candidate 1 of version 4.1
AWESOME!!!
did the update real quick... it's working great now
THANK YOU!
Cellinarac
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: play and stop audio files

Post by jsmorley »

Groovy...
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

yup, and when I get home on my main computer, I'll download that audio plugin you mentioned earlier and see about getting a playlist of sorts worked out for it. basically doing this for the media computer in the living room to get a Holiday theme. right now it has a Halloween Theme I made on it, that I am also going to redo things on now lol
Cellinarac
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

well, it's a boring day at work today so I am playing with this. now, the quote plugin thing is bugging me. I looked at the example for it, but not having any luck getting it to play anything at all. I am using the file path where the audio files are, but does it need to be in another format, or am I doing this all wrong as well?

Code: Select all

[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName="#@#Sounds\"
Subfolders=1
FileFilter=*.wav
and how do I go about adding the activation command for the button? I tried it with the [LeftMouseUpAction] as I had it previously but it didn't work.

this is what I have at the moment with button actions deactivated

Code: Select all

[Rainmeter]
Update=90
[Variables]
Color0=255,0,0,255
Color1=90,200,255,255
Color2=0,255,0,255
Color3=200,0,255,255
Color4=0,0,255,255
Color5=234,239,0,255
Color6=249,0,226,255

[MeasureRandom]
Measure=Calc
Formula=Random
UpdateRandom=1
UniqueRandom=1
LowBound=0
HighBound=6

[MeterFlash]
Meter=String
FontFace=Beyond Wonderland
FontSize=80
FontWeight=400
FontColor=[#Color[&MeasureRandom]]
SolidColor=0,0,0,1
AntiAlias=1
Text=Merry Christmas
DynamicVariables=1
;LeftMouseUpAction=[PLAY "#@#Sounds\.wav"]
;MiddleMouseUpAction=[PLAYSTOP]

[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName="#@#Sounds\"
Subfolders=1
FileFilter=*.wav
Cellinarac
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: play and stop audio files

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=90

[Variables]
Color0=255,0,0,255
Color1=90,200,255,255
Color2=0,255,0,255
Color3=200,0,255,255
Color4=0,0,255,255
Color5=234,239,0,255
Color6=249,0,226,255

[MeasureQuote]
Measure=Plugin
Plugin=QuotePlugin
PathName="#@#Sounds\"
Subfolders=1
FileFilter=*.wav
UpdateDivider=-1

[MeasureRandom]
Measure=Calc
Formula=Random
UpdateRandom=1
UniqueRandom=1
LowBound=0
HighBound=6

[MeterFlash]
Meter=String
FontFace=Beyond Wonderland
FontSize=80
FontWeight=400
FontColor=[#Color[&MeasureRandom]]
SolidColor=0,0,0,1
AntiAlias=1
Text=Merry Christmas
DynamicVariables=1
LeftMouseUpAction=[!UpdateMeasure MeasureQuote][PLAY "[MeasureQuote]"]
MiddleMouseUpAction=[PLAYSTOP]
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: play and stop audio files

Post by jsmorley »

I just had a epileptic seizure... I'm blaming your skin. ;-)
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

:rolmfao:

LOL yea I went to low on the update rate lol
about to try what you posted
Cellinarac
User avatar
Cellinarac
Posts: 50
Joined: May 19th, 2017, 4:03 pm

Re: play and stop audio files

Post by Cellinarac »

awesome, seems to work pretty good
once again, my life saver for the day lol
Cellinarac