It is currently September 29th, 2024, 9:29 am

Prefix, Postfix

General topics related to Rainmeter.
Unkn0wn999
Posts: 2
Joined: May 1st, 2012, 6:26 am

Prefix, Postfix

Post by Unkn0wn999 »

Is it possible to give a measure value to the prefix or postfix and possibility to substitute number with some measure value?
User avatar
jsmorley
Developer
Posts: 22783
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Prefix, Postfix

Post by jsmorley »

Unkn0wn999 wrote:Is it possible to give a measure value to the prefix or postfix and possibility to substitute number with some measure value?

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureCalc]
Measure=Calc
Formula=(MeasureCalc % 10) +1

[MeterString]
Meter=String
FontSize=12
FontColor=255,255,255
Prefix="[MeasureCalc]: "
Text=Some Text
DynamicVariables=1
Unkn0wn999
Posts: 2
Joined: May 1st, 2012, 6:26 am

Re: Prefix, Postfix

Post by Unkn0wn999 »

jsmorley wrote:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureCalc]
Measure=Calc
Formula=(MeasureCalc % 10) +1

[MeterString]
Meter=String
FontSize=12
FontColor=255,255,255
Prefix="[MeasureCalc]: "
Text=Some Text
DynamicVariables=1

I wasn't using DynamicVariables=1. Now it's fixed, thanks!
Autumn
Posts: 1
Joined: August 18th, 2015, 5:48 pm

Re: Prefix, Postfix

Post by Autumn »

Is it possible to apply custom font settings to the postfix text?? I want my postfix to appear differently than the actual text..
thnx in advance
User avatar
jsmorley
Developer
Posts: 22783
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Prefix, Postfix

Post by jsmorley »

Requires the latest Rainmeter 3.3 beta from http://rainmeter.net.

Code: Select all

[MeterOne]
Meter=String
FontSize=20
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Prefix="MyPrefix "
Text=MyText
Postfix=" MyPostfix"
InlineSetting=Color | 204,250,197,255
InlinePattern=MyPrefix
InlineSetting2=Color | 197,238,250,255
InlinePattern2=MyPostfix
Inline Options
1.jpg
You do not have the required permissions to view the files attached to this post.