Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 822

Lua Scripting • LUA GetOption() - How to preserve variable references?

$
0
0
https://docs.rainmeter.net/manual/lua-scripting/#GetOption
There slightly is a tool that would have helped with this, GetOption used to have an undocumented function that was documented recently on the page.
To quote it directly, "If the optional boolean parameter bReplaceMeasures is provided, when set to false it will not replace any section variables before retrieving that option."
That being said, it will not work here, since normal/new/nested variables when dealt with inside Rainmeter, they are already replaced in memory and RM has no idea what they were before-hand, you could technically just write

Code:

[MyVariable]Measure=StringString=255,0,5
and just use Section Variables for variables, bReplaceMeasure just works here, but you may be losing some benefits from normal variables (I can't think of any right now though).

Statistics: Posted by Jeff — Today, 11:47 am — Replies 18 — Views 2495



Viewing all articles
Browse latest Browse all 822

Trending Articles