Measures and meters can be referenced as variables. These are called section variables, and they can provide several kinds of information about the meter or measure. Lua scripts can also be called inline and most will work right out of the box and plugins can also add support but will be on a more case by case basis
A meter or measure is referenced as a section variable by placing the section name in brackets (
). The value provided by a section variable can be changed by adding parameters after a colon (
:). Multiple parameters are separated by commas (
,). Spaces are allowed after a comma.
Note: Normal or built-in variables take priority over section variables, which means that while they can be used within section variables, for example:
[#Foo#:#Bar#], the reverse, such as
#[Foo][Bar]#, is not valid.
This limitation can be addressed by using the Nesting Variables form of the variables.
Section variables are always dynamic.
DynamicVariables=1 will always be needed on a measure or meter section where the variable is used in an option value.
Section variables for meters have no value without a parameter.
The current X or Y position of the meter.
Note: This provides the "real" X or Y value, which is the position of the top-left corner of the meter area. This is always an integer, even if the meter has no X and Y options set, or if the options use formulas, variables or relative positions.
The current width or height of the meter.
Note: This provides the "real" W or H value. This is always an integer, even if the meter has no W and H options set, or if the options use formulas or variables.
If no parameters are given, the measure's string value is provided.
If a blank parameter is given, the measure's number value is provided, with up to ten decimal places of precision.
The measure's number value, with the number of decimal places given.
The measure's number value, scaled by the divisor given.
The measure's number value, as a percentual value.
The measure's string value will be URL-Encoded.
This will only return a value when used with a Time measure. The measure's Windows timestamp value. This will allow you to obtain the numeric value of the Windows timestamp from a Time measure that has a Format option, and won't have the timestamp as the normal number value.