It is currently April 24th, 2024, 7:38 pm

How to add track list plus current position in the list?

Get help with creating, editing & fixing problems with skins
User avatar
Brian
Developer
Posts: 2681
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: How to add track list plus current position in the list?

Post by Brian »

The measure itself is easy to setup...it's the placement of the meter (or adding it to your MeterString meter) that is going to have to be done by you based on your needs and tastes.

Here is the measure (just place it after the [MeasurePlayer] measure):

Code: Select all

[MeasureTrackNumber]
Measure=Nowplaying
PlayerName=[MeasurePlayer]
PlayerType=NUMBER
You can create your own string meter to display this information, or add it to your existing [MeterString] meter.
Here is a simple example using the code you have already provided. Feel free to change it as you like.

Code: Select all

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

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]

[MeterCover]
Meter=Image
MeasureName=MeasureCover
X=0R
Y=0r
W=120
H=120
PreserveAspectRatio=1

[MeterString]
MeasureName=MeasureTrackNumber
MeasureName2=MeasurePlayer
MeasureName3=MeasureArtist
MeasureName4=MeasurePosition
MeasureName5=MeasureDuration
Meter=STRING
X=0R
Y=60r
H=120
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFTCENTER
AntiAlias=1
Text=%1: %2#CRLF#%3#CRLF##CRLF#%4 (%5)

[MeasurePlayer]
Measure=NowPlaying
PlayerName=foobar2000
PlayerType=TITLE

[MeasureTrackNumber]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=NUMBER

[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST

[MeasureCover]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=COVER

[MeasureDuration]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=DURATION

[MeasurePosition]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=POSITION

[MeasureStatus]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATUS
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideFade "#CURRENTCONFIG#"]
IfFalseAction=[!ShowFade "#CURRENTCONFIG#"]
-Brian
anbr07
Posts: 82
Joined: July 17th, 2016, 12:19 pm

Re: How to add track list plus current position in the list?

Post by anbr07 »

Thanks, that worked! Cool. Is it maybe possible to have the track number in an extra line, just above the title, using some padding? Like "01", instead "1"?
That would be even batter. Aynway, the track number gives me some orientation, while playing albums. :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to add track list plus current position in the list?

Post by balala »

anbr07 wrote: December 22nd, 2018, 2:33 am Is it maybe possible to have the track number in an extra line, just above the title
Add a #CRLF# variable between the %1: and %2 elements of the Text option of [MeterString] meter: Text=%1#CRLF#%2#CRLF#%3#CRLF##CRLF#%4 (%5).
anbr07 wrote: December 22nd, 2018, 2:33 am using some padding? Like "01", instead "1"?
Add the following options to the [MeasureTrackNumber] measure:

Code: Select all

[MeasureTrackNumber]
...
RegExpSubstitute=1
Substitute="^(.)$":"0\1"
anbr07
Posts: 82
Joined: July 17th, 2016, 12:19 pm

Re: How to add track list plus current position in the list?

Post by anbr07 »

Perfect, thank you! :)