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

Lua Scripting • Re: The String Meter Skin Only Displays Zero

$
0
0
There are 3 mistakes in your codes:
- the syntax for the Lua inline measure should have an & after [, i.e. [&Script:YourFunction()], see the syntax here
- your meter should have DynamicVariables=1 added to it, to allow retrieving the values of section variables like the call to your Lua function, see the first line here
- in Lua, preceding something with -- is turning the rest of that line into a comment, so you might want to replace - with a similar character like _ instead, e.g. [&Script:f___()] in the .ini file and function f___() in the .lua file
The above assumes that you have a valid Script measure in your omitted code that points to the proper .lua file, of course.
Thank u

Statistics: Posted by zIa1yBX5 — Yesterday, 12:27 pm



Viewing all articles
Browse latest Browse all 1407

Trending Articles