It is currently April 23rd, 2024, 10:11 am
play command.
-
- Posts: 60
- Joined: June 18th, 2017, 8:22 pm
- Location: Liverpool UK
play command.
Hi Everyone.. Just started on my first attempt at reworking a layout..One of the skins has a meter on it that changes tint on mouseover but I want to play a sound aswell.. Can anyone advise if I can just add the play command to the existing line or do I need to do way with the tint change to use the mouseover.. Also either way do I need to open a new folder in the @Resources folder and use #@#. Thanks in anticipation.
It has been scientifically proven that racists,homophobes and all bigots are considerably less intelligent than people who see difference as a positive thing. The report also states that this is especially true of people who wont accept this as a fact but still deny being a racist, homophobe or bigot.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: play command.
You can combine as many actions as you want on any bang by enclosing each action in brackets []... referenceJediWarrior wrote:Hi Everyone.. Just started on my first attempt at reworking a layout..One of the skins has a meter on it that changes tint on mouseover but I want to play a sound aswell.. Can anyone advise if I can just add the play command to the existing line or do I need to do way with the tint change to use the mouseover.. Also either way do I need to open a new folder in the @Resources folder and use #@#. Thanks in anticipation.
For example to change the tint AND play a 'MyWav.wav' file that is located in your '@Resources\Sound' folder, simply do this:
Code: Select all
...
MouseOverAction=[!SetOption "MyMeter" "ImageTint" "#TintColor#"][Play "#@#Sounds\MyWav.wav"]
MouseLeaveAction=[!SetOption "MyMeter" "ImageTint" "#NormalColor#"][PlayStop]
...
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 60
- Joined: June 18th, 2017, 8:22 pm
- Location: Liverpool UK
Re: play command.
Hello electic-tech, You need to change your name to The Lone Ranger 'cus you're always riding in to the rescue.[sorry but I really couldn't resist that, must be 'cus I'm a Scouser and a lot of good comedians come from Liverpool ] Thanks a million for that I've included it and it works a treat...Thanks.....
It has been scientifically proven that racists,homophobes and all bigots are considerably less intelligent than people who see difference as a positive thing. The report also states that this is especially true of people who wont accept this as a fact but still deny being a racist, homophobe or bigot.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: play command.
You will soon be a ~Rainmeter~ Jedi Master!JediWarrior wrote:Hello electic-tech, You need to change your name to The Lone Ranger 'cus you're always riding in to the rescue.[sorry but I really couldn't resist that, must be 'cus I'm a Scouser and a lot of good comedians come from Liverpool ] Thanks a million for that I've included it and it works a treat...Thanks.....
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 60
- Joined: June 18th, 2017, 8:22 pm
- Location: Liverpool UK
Re: play command.
AaaaaaWwwwwww shuuucks. I bet you say that to all the good looking old men on this site
It has been scientifically proven that racists,homophobes and all bigots are considerably less intelligent than people who see difference as a positive thing. The report also states that this is especially true of people who wont accept this as a fact but still deny being a racist, homophobe or bigot.