Well, since I (thought that I) needed it in one of my codes, here is the way - it's actually quite simple if you draw things on a piece of paper:jsmorley wrote: ↑September 13th, 2014, 4:28 pm As you can see, this will make positioning a bit tricky, as while X works fine, the center of rotation is also based on where Y (the top) is defined for the meter, and there is really no way to have the anchor be actually in the vertical "middle" of the text string.
Code: Select all
[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
[MeasureRotate]
Measure=Calc
Formula=(MeasureRotate % 360) + 10
[MeterBack]
Meter=Image
W=100
H=100
SolidColor=47,47,47,255
[MeterOne]
Meter=String
X=50
Y=50
StringAlign=CenterCenter
FontSize=12
FontColor=0,0,0,0
SolidColor=255,150,150,128
AntiAlias=1
Text=Hello World
[MeterTwo]
Meter=String
X=(50+[MeterTwo:W]*0.5*0+[MeterTwo:H]*0.5*Cos(Rad([MeasureRotate]-90)))
Y=(50+[MeterTwo:H]*0.5*1+[MeterTwo:H]*0.5*Sin(Rad([MeasureRotate]-90)))
StringAlign=CenterCenter
FontSize=12
FontColor=255,255,255,255
SolidColor=150,150,150,128
AntiAlias=1
Text=Hello World
Angle=(Rad([MeasureRotate]))
DynamicVariables=1