It is currently May 4th, 2024, 12:09 am

NowPlaying.dll and Track Number

Get help with creating, editing & fixing problems with skins
Mark.Funk
Posts: 9
Joined: May 16th, 2011, 8:33 pm
Location: East Coast

NowPlaying.dll and Track Number

Post by Mark.Funk »

I edited the Enigma Itunes Music-Art skin to use the new Nowplaying.dll plugin and pull the information from Winamp (I'm a sucker for Album Artwork haha). The only thing I want to add is the track number next to the track name much like in the Enigma Winamp skin. How can I achieve this? I tried looking at other skins but didn't see anything that stood out to me, pretty new to this.

Current Skin:


Current Code:

Code: Select all

[Rainmeter]
Author=Kaelri.LCD@gmail.com (Enigma Edit)
AppVersion=1001000
Update=1000
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# Music.ini

[Metadata]
Name=Enigma Music | Art
Description=Displays track information from various media players.
Version=1.0.0
License=Creative Commons BY-NC-SA 3.0

[Variables]
@include=#SKINSPATH#Enigma\Resources\Variables\UserVariables.inc
Player=Winamp

; ------------------------------------------------------------------------------------------------
; MEASURES

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerType=TITLE
PlayerName=#Player#

[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Substitute="":"N\A"

[mAlbum]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ALBUM
Substitute="":"N\A"

[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=COVER
Substitute="":"Default.png"

[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=POSITION

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=DURATION

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

; ------------------------------------------------------------------------------------------------
; STYLES

[StyleText]
X=54
Y=16r
H=15
W=122
ClipString=1
FontFace=#Font#
FontSize=#Height2#
StringAlign=LEFT
StringStyle=NORMAL
AntiAlias=1

; ------------------------------------------------------------------------------------------------
; BORDER 1

[Border]
Meter=IMAGE
SolidColor=#ColorBorder#
X=0
Y=4
W=80
H=1

[Background]
Meter=IMAGE
SolidColor=0, 0, 0, 2
X=0
Y=1
W=180
H=70

[Label]
Meter=STRING
X=85
Y=0
FontColor=#Color1#
FontFace=#Font#
FontSize=#Height3#
StringAlign=LEFT
StringStyle=NORMAL
Text="N o w   P l a y i n g"
AntiAlias=1

;-------------------------
; BORDER 2

[ProgressBackground]
Meter=IMAGE
SolidColor=192, 192, 192, 80
X=0
Y=70
W=180
H=1

[Progress]
MeasureName=mProgress
Meter=BAR
X=0
Y=70
W=180
H=1
BarColor=#ColorActive#
BarOrientation=HORIZONTAL

; ------------------------------------------------------------------------------------------------
; ALBUM ART

[IconBack]
Meter=IMAGE
ImageName=#SKINSPATH#Enigma\Resources\Images\MusicAlbum.#ColorIcon#.png
X=4
Y=15
W=45
H=45

[Icon]
Meter=IMAGE
MeasureName=mCover
X=5
Y=16
H=43
W=43

;-------------------------
; TEXT

[Track]
Meter=STRING
MeasureName=mPlayer
X=52
Y=15
H=15
W=126
ClipString=1
FontColor=#Color1#
FontFace=#Font#
FontSize=#Height3#
StringAlign=LEFT
StringStyle=NORMAL
AntiAlias=1

[Artist]
Meter=STRING
MeasureName=mArtist
MeterStyle=StyleText
X=r
FontColor=#Color2#
AntiAlias=1

;-------------------------
; BUTTONS

[Prev]
Meter=IMAGE
X=53
Y=50
ImageName=#SKINSPATH#Enigma\Resources\Images\img_prev.png
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer Previous"]

[Play]
Meter=IMAGE
X=16r
Y=r
ImageName=#SKINSPATH#Enigma\Resources\Images\img_play.png
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"][!RainmeterHideMeter Play][!RainmeterShowMeter Pause]

[Pause]
Meter=IMAGE
X=-2r
Y=r
ImageName=#SKINSPATH#Enigma\Resources\Images\img_pause.png
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"][!RainmeterHideMeter Pause][!RainmeterShowMeter Play]
Hidden=1

[Next]
Meter=IMAGE
x=12r
y=r
ImageName=#SKINSPATH#Enigma\Resources\Images\img_Next.png
LeftMouseDownAction=!Execute [!RainmeterPluginBang "mPlayer Next"]

[Time]
Meter=STRING
MeasureName=mPosition
MeasureName2=mDuration
X=103r
Y=-1r
StringAlign=RIGHT
StringStyle=BOLD
FontColor=#Color1#
FontFace=#Font#
FontSize=#Height2#
AntiAlias=1
Text=%1.%2
What I'd like to do:

Just (Trank Number)(Track Name) since the artist name is displayed below the track.

Any help would be appreciated. Thank You!
User avatar
santa_ryan
Posts: 397
Joined: June 22nd, 2010, 4:11 am

Re: NowPlaying.dll and Track Number

Post by santa_ryan »

Post in up in the nowplaying topic found here
I have three rules when I'm trying to help you.
  • Don't get mad when you don't understand something
  • Be VERY specific with what you ask for.
    The more specific you are, the higher the quality of support you receive.
  • Do not just copy and paste what I put in examples and come back saying it doesn't work.
    It does work, but I purposely left blanks that you need to fill for your specific needs.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: NowPlaying.dll and Track Number

Post by poiru »

NowPlaying doesn't allow retrieval of track number (as of now -- might add in the future).
Mark.Funk
Posts: 9
Joined: May 16th, 2011, 8:33 pm
Location: East Coast

Re: NowPlaying.dll and Track Number

Post by Mark.Funk »

Thank Poiru!
brootalsir
Posts: 11
Joined: June 27th, 2011, 3:28 pm

Re: NowPlaying.dll and Track Number

Post by brootalsir »

Hey, I'm actually curious on how i would REMOVE the tracknumber from setup.I've tried using various coding but i've hit a wall. I just want it to display Artist - Song Title, but it's showing up as #Artist - Song Title.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: NowPlaying.dll and Track Number

Post by Seahorse »

It is in the file meta data, you'll need to edit them out.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

brootalsir
Posts: 11
Joined: June 27th, 2011, 3:28 pm

Metadata

Post by brootalsir »

I think this is the metadata, i'm fairly new to this. I've been removing things and replacing them, etc. I can't seem to get rid of the numbers still.It starts like that below then starts the plugins.

[Rainmeter]
Update=100
DynamicWindowSize=1


[Variables]
FontColor=0,0,0,255
FontName=MS Sans Serif
FontSize=4
AntiAlias=1
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: NowPlaying.dll and Track Number

Post by Seahorse »

No, the MP3 file meta data. Which player do you use? If it's Winamp right click a track in the play list and select "View file Info..."
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

brootalsir
Posts: 11
Joined: June 27th, 2011, 3:28 pm

Re: NowPlaying.dll and Track Number

Post by brootalsir »

I've done that as well, I went into "Edit metadata for selection" and "View File Info" and removed any area which had >Track#< in it. I refreshed Winamp and Rainmeter just in case too.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: NowPlaying.dll and Track Number

Post by Seahorse »

Ok, this is my player right now:
Capture.JPG
This is the MP3 Meta:
Capture2.JPG
This is the actual file:
Capture3.JPG
So the file name & the Meta have track 12, but I don't see it at all.

Can you show us what you are getting, is it with all music, or just some?
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt