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

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

$
0
0
I tried this with a string measure but wasn't sure what you meant in terms of your comment about storing the variables as section variables. As-is with that boolean enabled the best I'm finding it can do with disabling parsing is just regular section vars like :W and such (expectedly, given the description), while the rest get parsed (including variables that themselves reference section vars).
What Jeff meant was using an equivalent measure (example posted by him above) instead of a variable in the option that's retrieved by calling GetOption() from Lua, since the former should be treated as literal if setting the bReplaceMeasures parameter to false. In other words, the parameter should work with measures existing in the option string, but won't work with variables. Obviously, this refers to the OP, your scenario might aim for different things.

Statistics: Posted by Yincognito — 11 minutes ago — Replies 20 — Views 2541



Viewing all articles
Browse latest Browse all 769

Trending Articles