Dwarlorf wrote: ↑March 28th, 2020, 10:29 amAs I understand it I cannot use PlayerType title twice and have it show different values? Is there a workaround or some other way achieve this?
In case this issue is not yet solved, having multiple title measures works for me, in Winamp. Maybe it works for Foobar as well:
Code: Select all
[Variables]
SW=1
LW=110
RW=440
CW=14
[Rainmeter]
Update=1000
AccurateText=2
DynamicWindowSize=1
[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
---Measures---
[MeasurePlayer]
Measure=NowPlaying
PlayerName=CAD
PlayerType=FILE
[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST
[MeasureAlbum]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ALBUM
[MeasureYear]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=YEAR
RegExpSubstitute=1
Substitute="^([0])$":""
[MeasureTrack]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=NUMBER
RegExpSubstitute=1
Substitute="^([1-9])$":"0\1","^([0])$":""
[MeasureTitle]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE
RegExpSubstitute=1
Substitute="(?siU)^(.*)[\(\s]+?(?:featuring|feat|ft)[\.\s]+?(.*)[\)\s]*?$":"\1"
[MeasureFeaturing]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=TITLE
RegExpSubstitute=1
Substitute="(?siU)^(.*)[\(\s]+?(?:featuring|feat|ft)[\.\s]+?(.*)[\)\s]*?$":"\2","(?:^$|^\\2$|^[MeasureTitle:EscapeRegExp]$)":"None"
DynamicVariables=1
[MeasureLength]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=DURATION
Formula=(((MeasureDuration = 0) )
Substitute="00:00":""
[MeasureProgress]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=PROGRESS
[MeasureStatus]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"Foobar is off/not playing","1":"Foobar is playing","2":"Foobar is paused"
[MeasureVolume]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=VOLUME
---Styles---
[SBase]
FontColor=250,250,250,210
FontFace=Sansation
FontSize=18
StringStyle=Normal
StringAlign=LEFT
AntiAlias=1
ClipString=1
[SLeftCol]
X=0
Y=0R
W=#LW#
[SRightCol]
X=0R
Y=0r
W=#RW#
---Meters---
[MeterArtistLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Artist"
[MeterArtistValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureArtist
Text=": %1"
[MeterAlbumLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Album"
[MeterAlbumValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureAlbum
Text=": %1"
[MeterYearLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Year"
[MeterYearValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureYear
Text=": %1"
[MeterTrackLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Track"
[MeterTrackValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureTrack
Text=": %1"
[MeterLengthLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Length"
[MeterLengthValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureLength
Text=": %1"
[MeterTitleLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Song"
[MeterTitleValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureTitle
Text=": %1"
[MeterFeaturingLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Featuring"
[MeterFeaturingValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureFeaturing
Text=": %1"
[MeterProgressLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Progress"
[MeterProgressColon]
Meter=STRING
MeterStyle=SBase | SRightCol
W=#CW#
Text=":"
[MeterProgressValue]
Meter=BAR
MeterStyle=SBase | SRightCol
Y=11r
W=(#RW#-#CW#)
H=15
SolidColor=150,150,150,255
BarColor=250,250,250,210
BarOrientation=Horizontal
MeasureName=MeasureProgress
DynamicVariables=1
[MeterSeparator]
Meter=Shape
MeterStyle=SBase | SLeftCol
Y=([MeterProgressLabel:H]/2)R
W=(#LW#+#RW#)
H=(#SW#)
Shape=Line 0,(#SW#/2),(#LW#+#RW#),(#SW#/2) | StrokeWidth #SW# | Stroke Color 255,255,255,255
DynamicVariables=1
[MeterStatusLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Y=7R
Text="Status"
[MeterStatusValue]
Meter=STRING
MeterStyle=SBase | SRightCol
MeasureName=MeasureStatus
Text=": %1"
[MeterVolumeLabel]
Meter=STRING
MeterStyle=SBase | SLeftCol
Text="Volume"
[MeterVolumeColon]
Meter=STRING
MeterStyle=SBase | SRightCol
W=#CW#
Text=":"
[MeterVolumeValue]
Meter=BAR
MeterStyle=SBase | SRightCol
Y=11r
W=(#RW#-#CW#)
H=15
SolidColor=150,150,150,255
BarColor=250,250,250,210
BarOrientation=Horizontal
MeasureName=MeasureVolume
DynamicVariables=1
As you can see, no need for an IfMatch, as the comparison (and the replacement) can be done inside the RegExp Substitution. The variables allow some design tweaks, since:
SW = acronym for Stroke Width (the thickness of the separator line, which, by the way, should be drawn using a shape, and not the Line measure)
LW = acronym for Left Width (the width of the left column, the one displaying the labels)
RW = acronym for Right Width (the width of the right column, the one displaying the values)
CW = acronym for Colon Width (the width of the colon, i.e. the
: after the labels)
Preview:
Foobar.jpg
You do not have the required permissions to view the files attached to this post.