Lua Scripting • Re: How to escape meta characters when passing string from...
Appreciate the sleuthing! The observation about the escaping only being required for the string.match pattern and not also the for loop line var for string.gmatch was key. Thanks for taking the time...
View ArticleLua Scripting • Is there a way to obtain a variable value fully parsed?
Let's say we have a variable SomeVar which has a value of `[&Script:Manip('#Foo#')],(50+10)`. For the sake of this example let's say the `Manip` function returned a color value and the latter was...
View ArticleLua Scripting • Re: Is there a way to obtain a variable value fully parsed?
You could use the ReplaceVariables function.https://docs.rainmeter.net/manual/lua-scripting/#ReplaceVariablesIt should replace any section variables and custom functions.You may have to also use...
View ArticleLua Scripting • Re: LUA GetOption() - How to preserve variable references?
Yeah such a function would help a great deal in certain scenarios.Edit: I think the workaround will actually also work for my nested var swap scenario on reflection.Statistics: Posted by Crest — May...
View ArticleLua Scripting • Re: How to install a module?
I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.May I know why exactly you need to use that?Statistics: Posted by KazukiGames82 — May 31st,...
View ArticleLua Scripting • Formulas within nested inline Lua causing unexpected behavior
This is a separate issue from the since confirmed bug in the other thread (though it uses some similar functions). What is occurring is one inline Lua function is obtaining an inline function from a...
View ArticleLua Scripting • Re: Formulas within nested inline Lua causing unexpected...
Should also mention that for the most of the above examples which only (ultimately) involve number based comparisons they could be alternatively replaced by the native formula conditional syntax but...
View ArticleLua Scripting • I despair to find the error in LUA
Hello Guys,Rainmeter gives "Script: File not valid" for the following LUA Script and I can't find an error.The script should read a text file line by line in which data records are created line by...
View ArticleLua Scripting • Re: I despair to find the error in LUA
Could someone find the error please?Not sure how much it helps, but Lua provides the line number and some details on where and why the error occurs. Without running anything from your script or trying...
View ArticleLua Scripting • Re: Lua for conditional operators with strings as result. [Help]
Hey Nek, thank you for your contribution.Only drawback I've seen is, when using math, for example '10 + 8 = 18', it won't work. It needs the lua way: '10 + 8 == 18'It does work fine as well though,...
View ArticleLua Scripting • Re: Lua for conditional operators with strings as result.
So I've created this little testing skin:ConditionalExample_1.0.rmskinDesktop2024.10.18-18.55.42.01-ezgif.com-video-to-gif-converter.gifThe idea is a little radio button that enables and disables by...
View ArticleLua Scripting • Calling table-based functions via inline Lua: not possible?...
Something I was planning on doing with a collection of skins was creating separate pseudo namespaces for imported script functions, since anything imported via `dofile()` will be combined with the...
View ArticleLua Scripting • Re: Calling table-based functions via inline Lua: not...
However in just a simple test of calling such table functions via inline Lua, separate than any dofile imports, it seems Rainmeter doesn't handle table based function names for inline Lua, with an...
View ArticleLua Scripting • Re: Working with date / time in Lua
Hey JS, what if my skin is already working and set up using windows filetime (january 1 1601) and I want to parse that timestamp to lua as a global variable? I want to call...
View ArticleLua Scripting • Re: Snow with action timer?
Fair enough.That being said, the 1000 interval between redraws will only be applied while the animation is "off" anyway. When it comes to measure / meter updates, there is the option of using a...
View ArticleLua Scripting • Newbie asking for tips / samples
Hello from Italy.I'm an old programmer, just new to LUA and Rainmeter.Rainmeter test.jpgThis is the embryo of a skin i'm trying to build.Each of the 8 sectors is one of my CPU core and shows some data...
View ArticleLua Scripting • Re: Newbie asking for tips / samples
Each of the 8 sectors is one of my CPU core and shows some data about it.I would like to make them to change color from blue to red to show the core temp, and change the size (the external diameter)...
View Article