It is currently May 1st, 2024, 1:28 pm

Maximum length to a meter

Get help with creating, editing & fixing problems with skins
BenG
Posts: 39
Joined: March 15th, 2012, 4:32 pm

Maximum length to a meter

Post by BenG »

Hey guys, I've made a basic Now Playing skin but I want the title of the song to have a certain maximum length in order to stop really long titles going all across my desktop. I've tried W= without luck can anyone help? I want the limit to be on the [MeterTitle]

Code: Select all

[RainMeter]
Update=300
DynamicWindowSize=1
Author=DeviantBen

[MetaData]
Name=EasyNowPlaying
Information=Simple now playing skin for newcomers to learn the basics
Version=1.0.0

; Measures

[MeasureHiding]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=STATE
IfEqualValue=0
IfEqualAction=!Execute [!Hide EasyNowPlaying] [!HideMeterGroup Hide] [!Update]
IfAboveValue=0
IfAboveAction=!Execute [!Show EasyNowPlaying] [!ShowMeterGroup Hide] [!Update]
DynamicVariables=1 

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=TITLE

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=ARTIST

[MeasureTime]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=POSITION

[MeasureTotalTime]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=DURATION

; Meters For Text

[MeterYouAre]
Meter=String
Group=Hide
FontSize=10
FontColor=255,255,255
AntiAlias=1
Text="Você está ouvindo "

[MeterTitle]
Meter=String
MeasureName=MeasureTitle
Group=Hide
X=R
FontSize=10
FontColor=34,255,0
AntiAlias=1
Text=%1

[MeterBy]
Meter=String
Group=Hide
X=R
FontSize=10
FontColor=255,255,255
AntiAlias=1
Text="de "

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
Group=Hide
X=R
FontSize=10
FontColor=34,255,0
AntiAlias=1
Text=%1

[MeterTime]
Meter=String
MeasureName=MeasureTime
Group=Hide
X=80
Y=16
FontSize=7
StringStyle=BOLD
FontColor=255,255,255,101
AntiAlias=1
PreFix="["
PostFix=" |"

[MeterTotalTime]
Meter=String
MeasureName=MeasureTotalTime
Group=Hide
X=R
Y=16
FontSize=7
StringStyle=BOLD
FontColor=255,255,255,101
AntiAlias=1
PostFix="]"

; Meters For Buttons

[MeterPrevious]
Meter=Image
Group=Hide
X=0
Y=16
W=20
H=20
ImageName=#CURRENTPATH#Prev.png
LeftMouseUpAction=!Execute [!CommandMeasure "MeasureTitle" "Previous"]

[MeterPlay]
Meter=Image
Group=Hide
X=5R
Y=16
W=20
H=20
ImageName=#CURRENTPATH#Play.png
LeftMouseUpAction=!Execute [!CommandMeasure "MeasureTitle" "PlayPause"]

[MeterNext]
Meter=Image
Group=Hide
X=5R
Y=16
W=20
H=20
ImageName=#CURRENTPATH#Next.png
LeftMouseUpAction=!Execute [!CommandMeasure "MeasureTitle" "Next"]


dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Maximum length to a meter

Post by dragonmage »

W=
H=
ClipString=1