Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Assume this is the script you put into a measure.
- the measure looks like this
- [SomeMeasure]
- Measure=Script
- Script=SomeScript.lua
- SomeNewScriptValue1=2
- SomeNewScriptValue2=3
- --]]
- function inititialize()
- -- [[ Get property, just thought of this now, but it will return a value from the measures ini definition, one of the key value pairs
- myVar1 = tonumber(GetProperty("SomeNewScriptValue1")); --[[ convert to number because rainmeter thinks everything is a string
- myVar2 = tonumber(GetProperty("SomeNewScriptValue1"))); --[[ convert to number because rainmeter thinks everything is a string
- end
- function update()
- myResult = myVar1 + myVar2;
- end
- function GetValue()
- return myResult;
- end
- function GetValue()
- return myResult:to;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement