Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. --[[
  2. Assume this is the script you put into a measure.
  3.  
  4. the measure looks like this
  5.  
  6. [SomeMeasure]
  7. Measure=Script
  8. Script=SomeScript.lua
  9. SomeNewScriptValue1=2
  10. SomeNewScriptValue2=3
  11. --]]
  12.  
  13. function inititialize()
  14.  
  15. -- [[ Get property, just thought of this now, but it will return a value from the measures ini definition, one of the key value pairs
  16. myVar1 = tonumber(GetProperty("SomeNewScriptValue1")); --[[ convert to number because rainmeter thinks everything is a string
  17. myVar2 = tonumber(GetProperty("SomeNewScriptValue1"))); --[[ convert to number because rainmeter thinks everything is a string
  18.  
  19. end
  20.  
  21. function update()
  22. myResult = myVar1 + myVar2;
  23. end
  24.  
  25. function GetValue()
  26. return myResult;
  27. end
  28.  
  29. function GetValue()
  30. return myResult:to;
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement