It is currently May 3rd, 2024, 12:03 pm

Meter = String does not like a [ in the text field

Get help with creating, editing & fixing problems with skins
lmclaren
Posts: 3
Joined: February 8th, 2011, 5:07 am

Meter = String does not like a [ in the text field

Post by lmclaren »

Hi,

I am using ver 2 of Rainmeter.

I have a String Meter with a ToolTip text field using a variable from LUA.

The string in the variable looks like "Good Game [ABC2]" (with quotes as shown) but Rainmeter does not like it, the log is showing the following warning:

WARNING: (00:31:36.437) No such measure [ABC2] for execute string: !RainmeterSetVariable TextItemTT7 "Good Game [ABC2]"

Code: Select all

[Item1Left]
Meter=STRING
MeterStyle=sTextL
Text=#TextItemL1#
DynamicVariables=1
Y=#h.Item#
FontColor=#TextItemFontColourL1#
LeftMouseUpAction=!Execute ["[mLink1]"]
ToolTipText=#TextItemT1#
ToolTipTitle=#TextItemTT1#


Is there a way to stop the warning?

thanks

Lee
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Meter = String does not like a [ in the text field

Post by poiru »

For now, you could use string.gsub in Lua to replace [ and ] with ( and ).
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Meter = String does not like a [ in the text field

Post by jsmorley »

poiru wrote:For now, you could use string.gsub in Lua to replace [ and ] with ( and ).
Yeah, I had to do the same thing when an RSS feed contained quotes, as then when you try to pass the data back to Rainmeter it caused problems. I used string.gsub to change " to ' and it was ok.
lmclaren
Posts: 3
Joined: February 8th, 2011, 5:07 am

Re: Meter = String does not like a [ in the text field

Post by lmclaren »

Thanks, I will give it a try.

Lee