It is currently April 18th, 2024, 7:19 am
Skin that changes depending on track name?
-
- Posts: 39
- Joined: November 17th, 2018, 12:20 am
- Location: Romania
Skin that changes depending on track name?
Is it possible to identify different tracks currently being played and react accordingly to it? For example if we have track "a.mp3", have an image "1.png" show up, which then disappears if said track stops. If track "b.mp3" plays instead, show "2.png" and so on.
-
- Rainmeter Sage
- Posts: 16143
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Skin that changes depending on track name?
Yes, it definitely is. But is very complicated because the title can be anything and probably there isn't possible to have one image for all possible titles.VL4DST3R wrote: ↑August 15th, 2019, 2:58 pm Is it possible to identify different tracks currently being played and react accordingly to it? For example if we have track "a.mp3", have an image "1.png" show up, which then disappears if said track stops. If track "b.mp3" plays instead, show "2.png" and so on.
However here is a workaround:
Code: Select all
[MeasurePlayer]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=TITLE
IfMatch=FIRST-TITLE
IfMatchAction=[!SetOption MeterImage ImageName "THE-IMAGE-FOR-THIS-TITLE"][!UpdateMeter "MeterImage"][!Redraw]
IfMatch2=SECOND-TITLE
IfMatchAction2=[!SetOption MeterImage ImageName "THE-IMAGE-FOR-THIS-TITLE"][!UpdateMeter "MeterImage"][!Redraw]
...
[MeterImage]
Meter=Image
X=0
Y=0
Although the number of IfMatch / IfMatchAction options isn't limited, what I see here a major problem is that you can't add an infinite number of such options.
-
- Posts: 39
- Joined: November 17th, 2018, 12:20 am
- Location: Romania
Re: Skin that changes depending on track name?
Yes, I only want this to show up for a few select tracks, with a known name, not everything in my library!
Oh god, the PlayerName var... i completely forgot rainmeter works only with some media players, and that list doesn't include the w10 default player which i generally use... rats.balala wrote: ↑August 15th, 2019, 3:33 pm You have to add the PlayerName variable to the [Variables] section, accordingly to this and the appropriate image names into the above !SetOption bangs, replacing the THE-IMAGE-FOR-THIS-TITLE with the proper names.
Although the number of IfMatch / IfMatchAction options isn't limited, what I see here a major problem is that you can't add an infinite number of such options.
Regardless, thank you for the info, very helpful as always balala!
-
- Rainmeter Sage
- Posts: 16143
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Skin that changes depending on track name?
No, unfortunately it doesn't. Would be good, but at least for now, it doesn't.