The only measure-specific option currently needed is String.
Code: Select all
[MeasureMyString]
Measure=String
String=Hello World
This is intended to address obtaining a string or numeric-string value (using measures like WebParser or QuotePlugin or FileView) and manipulating the string while keeping the original value and format for other purposes. Previously, we either needed to create two of the measures, which is inefficient at best, or use the Time measure, which has the disadvantage of failing if any "%" character is used in the string. ("%" is a component of a Time code, and will confuse the measure if used in a normal string)
The measure can also be very handy for prototyping and testing skin functionality where you need to use a string obtained by a more complicated process like parsing a web site or obtaining input from a user with InputText or other methods that are time consuming to create. Simply use a String measure to create an example of the string value you intend to obtain, and use it in place of the more complicated functions while you test how you are going to "use" the value in your skin.
The following code demonstrates one use of the new measure.
Measure=String
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[MeasureNumber]
Measure=Calc
Formula=(2**31)
[MeasureString]
Measure=String
String=[MeasureNumber]
RegExpSubstitute=1
Substitute="\d{1,3}(?=(\d{3})+$)":"\0,"
DynamicVariables=1
[MeterString]
Meter=String
MeasureName=MeasureNumber
FontSize=13
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
AutoScale=1
Text=[MeasureString:]#CRLF#%1B#CRLF#[MeasureString]
DynamicVariables=1