It is currently May 21st, 2022, 6:07 pm

LUA Set tooltip text

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

LUA Set tooltip text

Post by Wezz »


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?

User avatar
Posts: 22519
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.