It is currently September 29th, 2024, 9:30 pm

How do I get the Update value?

General topics related to Rainmeter.
User avatar
jsmorley
Developer
Posts: 22793
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How do I get the Update value?

Post by jsmorley »

moshi wrote:i think he does.
i can see a use in being able to change updates of only a limited number of elements (the animation for example) and have the other elements stay at the same update. that would require a formula like:
UpdateDivider=((#DefaultUpdate#)/(#SkinUpdate#))*(#DefaultDivider#)

maybe i just misinterpreted.
Right, I have no doubt he means to use the value in a formula to control some animation speed, but I didn't want him blamed for the simplistic "UpdateDivider=(#SkinUpdate# * 2)" :-)

One thing to keep in mind AIC, is that while you can set Update= using a variable as I demonstrated, you can't dynamically change that variable (well, you can, but the [Rainmeter] section is not dynamic and won't see any change.) To effect a change, you would need to use !WriteKeyValue on the variable, and do a skin refresh.