It is currently April 26th, 2024, 3:07 am

LUA Set tooltip text

Discuss the use of Lua in Script measures.
Wezz
Posts: 1
Joined: April 24th, 2011, 1:17 am

LUA Set tooltip text

Post by Wezz »

Hello,

I'm currently editing Gnometers foobar2000 skin, and want to change the tooltip after the song playing.
But the problem is that I can't find a method to do this.
It's like SetText() but Tooltip instead, doesn't it exist yet?

Regards
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: LUA Set tooltip text

Post by jsmorley »

No, but you can initialize a variable in the [Variables] section of the skin, and put TooTipText=#VarName# and DynamicVariables=1 on the meter displaying the tooltip. Then in Lua, you can use SKIN:Bang("!RainmeterSetVariable VarName Value") to change the variable and the meter will respond to the change.