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]
Note that as with all [SectionVariables], DynamicVariables=1 is required when used on any option outside of a bang.