Quantcast
Viewing all articles
Browse latest Browse all 27

Lua Scripting • Re: Feeding a table from RM?

So... Is there a way to do it?
Like this:

Code:

function splitOnComma(str)  fields = {}  for field in str:gmatch('([^,]+)') do    fields[#fields+1] = field  end  return fieldsendfunction Update()myString=SELF:GetOption('TableContents')myTable = splitOnComma(myString)return myTable[3]end
The long and the short of it is that no matter how you pass the value to the table from Rainmeter, it will be seen as a single string, not the individual elements you want. You will have to break apart the string into actual individual elements and build the table from them.

Statistics: Posted by jsmorley — Yesterday, 2:26 am



Viewing all articles
Browse latest Browse all 27

Trending Articles