It is currently May 8th, 2024, 12:25 am

Changing Colours Help

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

Changing Colours Help

Post by BenG »

Hey all,

I used an example script from the manual and adapted it a little so it tells me what I'm listening to. My problem is I want the Artist name and the Track name to be in bold or be able to change the colour of it. Here is my code so far, if anyone can point me in the right direction it would be cool.

Cheers,

- Ben

Code: Select all

[RainMeter]
Update=1000

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=TITLE
DisableLeadingZero=0

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Artist

[MeterTitle]
Meter=String
MeasureName=MeasurePlayer
H=16
FontSize=10
FontColor=255,255,255
AntiAlias=1
AutoScale=1
Text="You are listening to %1"

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=R
H=16
FontSize=10
FontColor=255,255,255
AntiAlias=1
AutoScale=1
Text="by %1"
You do not have the required permissions to view the files attached to this post.
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Changing Colours Help

Post by Mordasius »

All you need to do is separate the meters that show plain text from those that show bold and/or different coloured text.

Code: Select all

[RainMeter]
Update=1000
DynamicWindowSize=1

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
PlayerType=TITLE
DisableLeadingZero=0

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Artist

[MeterTextYouAre]
Meter=String
H=16
FontSize=10
FontColor=255,255,255
AntiAlias=1
Text="You are listening to "

[MeterTitle]
Meter=String
MeasureName=MeasurePlayer
X=R
H=16
FontSize=10
FontColor=255,255,0
StringStyle=BOLD
AntiAlias=1
Text=%1

[MeterTextBy]
Meter=String
X=R
H=16
FontSize=10
FontColor=255,255,255
AntiAlias=1
Text=" by "

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=R
H=16
FontSize=10
FontColor=255,255,0
StringStyle=BOLD
AntiAlias=1
; AutoScale=1
Text=%1
BenG
Posts: 39
Joined: March 15th, 2012, 4:32 pm

Re: Changing Colours Help

Post by BenG »

Ah I'll put that in now, trying to code at 2am doesn't work sometimes I almost had it too but couldn't get it to work. Cheers

Oh what does DynamicWindowSize=1 mean?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Changing Colours Help

Post by smurfier »

BenG wrote:Ah I'll put that in now, trying to code at 2am doesn't work sometimes I almost had it too but couldn't get it to work. Cheers

Oh what does DynamicWindowSize=1 mean?
It makes Rainmeter calculate the window size on every update. Without it, the window size is only calculated once and if your text grows to be outside that window it gets cut off.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
BenG
Posts: 39
Joined: March 15th, 2012, 4:32 pm

Re: Changing Colours Help

Post by BenG »

smurfier wrote:It makes Rainmeter calculate the window size on every update. Without it, the window size is only calculated once and if your text grows to be outside that window it gets cut off.
Cheers Smurfier, I always see it and wonder what the hell it does aha.