It is currently April 24th, 2024, 5:25 pm

Winamp Skin -- using measures/paths in an image path ???

Get help with creating, editing & fixing problems with skins
Scrubs Abound
Posts: 2
Joined: August 1st, 2010, 6:56 pm

Winamp Skin -- using measures/paths in an image path ???

Post by Scrubs Abound »

I am new to writing on the forums and I apologize if my post is sloppy/incoherent, but I will try my best to follow standard formatting.

I've been working on a Winamp skin and I'm attempting to load album art from my hard drive. I am using some borrowed code that involves using the WebParser.dll plugin, but that is not my problem.

I have two measures:

Code: Select all


[mAlbum]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mRSS]
StringIndex=4
substitute="?":"unknown" , " ":""

[mArtist]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mRSS]
StringIndex=1
substitute="?":"unknown"," ":""

[mAlbum] returns the Album of the song that is currently playing
[mArtist} similarly returns the Artist of the song

I am running Windows 7 on my computer and so the path to my music files is:

C:\Users\Brent\Music\"ARTIST NAME"\"ALBUM NAME"\"SONG"

I have a local copy of the album art stored to "cover.png" in each album folder

I have a variable declared that is

pathname="C:\Users\Brent\Music\"

I coded up a meter for the purpose of debugging that looks like:

Code: Select all

[AlbumArtPath]
MeasureName=mArtist
MeasureName2=mAlbum
Meter=STRING
Text=#pathname#%1\%2\cover.png
X=200
Y=0
which when I play "Let Me Go" by 3 Doors Down off Seventeen Days album displays

C:\Users\Brent\Music\3 Doors Down\Seventeen Days\cover.png

which is exactly what I want it to do.


The trouble is that when I apply this method of creating a path name to draw an image, nothing happens...

Code: Select all

[AlbumArtImage]
Meter=IMAGE
MeasureName=mArtist
MeasureName2=mAlbum
ImageName=#pathname#%1\%2\cover.png
X=200
Y=20
W=100
H=100
So I guess my question is something along the lines of what are the limitations of using measures in the settings for meters?

I hope this makes sense.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Winamp Skin -- using measures/paths in an image path ???

Post by Alex2539 »

Image meters are unable to read multiple measures, they can only read one. Instead you will want to use dynamic variables. Try this:

Code: Select all

[AlbumArtImage]
Meter=IMAGE
ImageName=#pathname#[mArtist]\[mAlbum]\cover.png
X=200
Y=20
W=100
H=100
DynamicVariables=1
ImageImageImageImage
Scrubs Abound
Posts: 2
Joined: August 1st, 2010, 6:56 pm

Re: Winamp Skin -- using measures/paths in an image path ???

Post by Scrubs Abound »

It worked, it worked! You are my savior. I spent about four hours trying to work this out this morning before I posted. I can't thank you enough.