Yeah, it needs a bit more than an "inspection", Jayson. Section names don't match or options are missing, and all that. Anyway, I see what you mean, by eventually figuring out a working version of the code:
Code: Select all
[Variables]
Topmenu_Title_Text="AAA"
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Measures---
[Font.A.Glyph]
Measure=String
String="0,16|ArcTo 16,0,16|LineTo 26,0|ArcTo 42,16,16|LineTo 42,100|LineTo 26,100|LineTo 26,58|LineTo 16,58|LineTo 16,42|LineTo 26,42|LineTo 26,21|ArcTo 16,21,5,*,*,1|LineTo 16,100|LineTo 0,100|ClosePath 1"
[Font.A.Advance]
Measure=String
String=47
[Title.Characters]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
String=[#Topmenu_Title_Text]
Substitute="[^ a-zA-Z0-9]":""
OnUpdateAction=[!UpdateMeasure Title.Character1][!UpdateMeasure Title.Character2][!UpdateMeasure Title.Character3][!UpdateMeter TopmenuFrame][!Redraw]
[Title.Character1]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^(.).*$":"\1"," ":"Space","":"None"
[Title.Character2]
Measure=String
Group=TitleCharacters
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^.{1}(.).*$":"\1","[&Title.Characters]":""," ":"Space","":"None"
[Title.Character3]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^.{2}(.).*$":"\1","[&Title.Characters]":""," ":"Space","":"None"
---Styles---
[Topmenu.Frame]
DynamicVariables=1
SharedModifiers=StrokeWidth 0|Fill Color 0,0,0
Shape=Path Font.[&Title.Character1].Glyph|Offset ([&[#CURRENTSECTION]:W]-100-([&Font.[&Title.Character1].Advance]+[&Font.[&Title.Character2].Advance]+[&Font.[&Title.Character3].Advance])),0|Extend SharedModifiers
Shape2=Path Font.[&Title.Character2].Glyph|Offset ([&[#CURRENTSECTION]:W]-100-([&Font.[&Title.Character2].Advance]+[&Font.[&Title.Character3].Advance])),0|Extend SharedModifiers
Shape3=Path Font.[&Title.Character3].Glyph|Offset ([&[#CURRENTSECTION]:W]-100-([&Font.[&Title.Character3].Advance])),0|Extend SharedModifiers
Font.A.Glyph=[&Font.A.Glyph]
; Shape4=Combine Shape | Union Shape2 | Union Shape3 | Scale 0.2,0.2
---Meters---
[TopmenuFrame]
Meter=Shape
MeterStyle=Topmenu.Frame
DynamicVariables=1
X=0
Y=0
W=[#WORKAREAWIDTH]
H=[#WORKAREAHEIGHT]
This code should do roughly what you want though - I'll let you figure out the differences:
Code: Select all
[Variables]
Topmenu_Title_Text="AAA"
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Measures---
[Font.A.Glyph]
Measure=String
String="0,16|ArcTo 16,0,16|LineTo 26,0|ArcTo 42,16,16|LineTo 42,100|LineTo 26,100|LineTo 26,58|LineTo 16,58|LineTo 16,42|LineTo 26,42|LineTo 26,21|ArcTo 16,21,5,*,*,1|LineTo 16,100|LineTo 0,100|ClosePath 1"
[Font.A.Advance]
Measure=String
String=47
[Title.Characters]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
String=[#Topmenu_Title_Text]
Substitute="[^ a-zA-Z0-9]":""
OnUpdateAction=[!UpdateMeasure Title.Character1][!UpdateMeasure Title.Character2][!UpdateMeasure Title.Character3][!UpdateMeter TopmenuFrame][!Redraw]
[Title.Character1]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^(.).*$":"\1"," ":"Space","":"None"
[Title.Character2]
Measure=String
Group=TitleCharacters
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^.{1}(.).*$":"\1","[&Title.Characters]":""," ":"Space","":"None"
[Title.Character3]
Measure=String
DynamicVariables=1
RegExpSubstitute=1
IfMatchMode=1
String=[&Title.Characters]
Substitute="^.{2}(.).*$":"\1","[&Title.Characters]":""," ":"Space","":"None"
---Styles---
[Topmenu.Frame]
DynamicVariables=1
SharedModifiers=StrokeWidth 0|Fill Color 0,0,0
Shape=Path Font.[&Title.Character1].Glyph|Offset ([&Font.[&Title.Character1].Advance]+[&Font.[&Title.Character2].Advance]+[&Font.[&Title.Character3].Advance]),0|Extend SharedModifiers
Shape2=Path Font.[&Title.Character2].Glyph|Offset ([&Font.[&Title.Character2].Advance]+[&Font.[&Title.Character3].Advance]),0|Extend SharedModifiers
Shape3=Path Font.[&Title.Character3].Glyph|Offset ([&Font.[&Title.Character3].Advance]),0|Extend SharedModifiers
Font.A.Glyph=[&Font.A.Glyph]
; Shape4=Combine Shape | Union Shape2 | Union Shape3 | Scale 0.2,0.2
---Meters---
[TopmenuFrame]
Meter=Shape
MeterStyle=Topmenu.Frame
DynamicVariables=1
X=([#WORKAREAWIDTH]-100-[TopmenuFrame:W])
Y=0