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

Lua Scripting • Re: Talking with Lua...

$
0
0
Hey teacher I got a question.

What if the arg is a dynamic variable used on a SetOption bang and you want it to stay dynamic?

Something like [!SetOption meter fontcolor "[*&Script:function('[*#Color*]')*]"]

What's the correct syntax for that?
I think the correct way to write it would be [!SetOption meter fontcolor "[&*Script:function('[#*Color*]')*]"] (notice the order of &, #, and *). Also, in case you need this one day, you can "multiescape" things, like, for example, [#**Color**] and such (useful if you nest escaped stuff in variables)...

Statistics: Posted by Yincognito — Today, 4:58 pm



Viewing all articles
Browse latest Browse all 1536

Trending Articles