I see that there is a deprecated function GetStringValue that should allow script to have different values. Documentation page states that this function is still supported.
I also found an old forum thread that has an example of a script in "deprecated" style:
Code: Select all
function Initialize()
-- do something here
end
function Update()
-- do something here
end
function GetStringValue()
return "Hello world!"
end
function GetValue()
return 42
end
I created a simple skin to test it and it doesn't seem to work.for backwards compatibility, GetStringValue() is called if Update() does not return any value
Code: Select all
[script]
measure=script
ScriptFile=test.lua
[back]
meter=image
h=30
w=100
solidcolor=888888
So, has the support for this been removed, or do I have some errors in my code?
My Rainmeter version is 4.2.0 r3111 (Jul 8 2018).