It is currently April 21st, 2019, 1:17 pm

New [SomeMeter:XW] and [SomeMeter:YH] Section Variables

Changes made during the Rainmeter 4.3 beta cycle.
User avatar
jsmorley
Developer
Posts: 19183
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

New [SomeMeter:XW] and [SomeMeter:YH] Section Variables

jsmorley » February 21st, 2019, 8:00 pm

We have added two new meter Section Variables:

https://docs.rainmeter.net/manual-beta/variables/section-variables/#XWYH

[SomeMeter:XW]
Uses the current value of X and the current W-width of the named meter, and adds them together to give you the X-position of the "end" of the meter.

[SomeMeter:YH]
Uses the current value of Y and the current H-height of the named meter, and adds them together to give you the Y-position of the "end" of the meter.

This equates to, and can be used in place of, formulas like:

X=([SomeMeter:X] + [SomeMeter:W])
Y=([SomeMeter:Y] + [SomeMeter:H])

In order to have a meter be "relative" to another meter.

Code: Select all

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

[MeterOne]
Meter=String
X=0
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Text=MeterOne:[MeterOne:X]

[MeterTwo]
Meter=String
X=[MeterOne:XW]
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Text=MeterTwo:[MeterOne:XW]

1.jpg


Note that as with all [SectionVariables], DynamicVariables=1 is required when used on any option outside of a bang.
You do not have the required permissions to view the files attached to this post.