However, there may be a case were you want an action to execute when a skin is first loaded, but not each time when it is refreshed thereafter. In effect a distinct OnLoadAction, which doesn't (and due to backwards compatibility issues at this point, really can't) exist.
There is a way to use the internal Counter function in Rainmeter to solve this.
The Counter function in a Calc measure will return the number of skin "updates" that have taken place since the skin was loaded. This counter is not reset to zero when the skin is refreshed.
Code: Select all
[MeasureOnLoad]
Measure=Calc
Formula=Counter
IfEqualValue=1
IfEqualAction=[Some bangs or commands]
UpdateDivider=-1