SKIN:Bang("!SetVariable LogVariable"..i.." "..tAllLines[iCount-i])
gives me No such config:is
playing with the ..amends continues to expect either an opening or closing bracket.I've tried quoting "tallLines" also as that will contain spaces also.
Seeing as dynamicvariables cant be used on a meter with settext forced on it,is it possible to force text on the variables within the variables section,thereby retaining the 2 table system you were already using.I've tried changing the code in the measure=script and "tMeters = tolua.cast(SKIN:GetMeter(sMeterPrefix..i), "CMeterString")" to point to the variables instead of the meters but (SKIN:Getvariable(sMeterPrefix..i), "CVariableString") wont work.
It is currently October 9th, 2024, 5:13 pm
LuaTailFile - A skin to read logs, todo lists, etc.
-
- Posts: 185
- Joined: December 4th, 2009, 2:05 am
-
- Developer
- Posts: 22847
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTailFile - A skin to read logs, todo lists, etc.
I'm not ignoring you, but am away from my computer until tomorrow afternoon. I'll figure out what you are seeing then, I'm sure it is some simple little thing.
-
- Developer
- Posts: 22847
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTailFile - A skin to read logs, todo lists, etc.
You want to toss up your skin and lua code so I can see what is going on?
-
- Posts: 185
- Joined: December 4th, 2009, 2:05 am
Re: LuaTailFile - A skin to read logs, todo lists, etc.
In this one I've just added the variables and text = to your ini and made the meterstyle dynamic.Then replaced the settext line with your bang command.
Ini
Lua
Ini
-
- Posts: 185
- Joined: December 4th, 2009, 2:05 am
Re: LuaTailFile - A skin to read logs, todo lists, etc.
As that gives me Unknown Config:Is ,I'm presuming it's appending the "This line" in "This line is n" to the variable and then looking for a config to put the variable too.
-
- Developer
- Posts: 22847
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTailFile - A skin to read logs, todo lists, etc.
The problem (again mine for not waiting til I was in a place where I could test things) is that the lines of text in the text file have spaces in them, and so unless you enclose the value you are sending when you do the !SetVariable bang, it splits it and assumes that part of it is the optional "Config" parameter for a !SetVariable bang.
SKIN:Bang("!SetVariable LogVariable"..i.." ".."\""..tAllLines[iCount-i].."\"")
Seems to fix it for me.
As you see, I am enclosing the tAllLines[iCount-i] in quotes. I have to "escape" the quotes with "\" so they are seen as a literal and actually sent as part of the bang, and not treated as delimiters in the function call itself.
SKIN:Bang("!SetVariable LogVariable"..i.." ".."\""..tAllLines[iCount-i].."\"")
Seems to fix it for me.
As you see, I am enclosing the tAllLines[iCount-i] in quotes. I have to "escape" the quotes with "\" so they are seen as a literal and actually sent as part of the bang, and not treated as delimiters in the function call itself.
-
- Posts: 185
- Joined: December 4th, 2009, 2:05 am
Re: LuaTailFile - A skin to read logs, todo lists, etc.
I could see what was going wrong but had no idea about how to escape the quotes.(should have considering how much of the manual i've read).Thanks for all your help.You may regret my starting to play with lua,there may be many,many,many more questions on the horizon.I have to "escape" the quotes so they are actually sent as part of the bang and not treated as delimiters in the function call itself.
-
- Developer
- Posts: 22847
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTailFile - A skin to read logs, todo lists, etc.
That's fine... I don't want to get into full blown Lua lessons here, but I'm glad to help where I can.Jkon wrote: I could see what was going wrong but had no idea about how to escape the quotes.(should have considering how much of the manual i've read).Thanks for all your help.You may regret my starting to play with lua,there may be many,many,many more questions on the horizon.
-
- Developer
- Posts: 22847
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaTailFile - A skin to read logs, todo lists, etc.
I sent you a PM...
-
- Posts: 20
- Joined: May 31st, 2011, 7:15 am
Re: LuaTailFile - A skin to read logs, todo lists, etc.
Hi...
I really like this one!
I'm using it with mIRC ... the only thing is when there is a long row of text, It goes across my screen and sometimes beyond... :/
Is there anyway to do a line break when the line is more than X characters?
Thanx!
I really like this one!
I'm using it with mIRC ... the only thing is when there is a long row of text, It goes across my screen and sometimes beyond... :/
Is there anyway to do a line break when the line is more than X characters?
Thanx!