It is currently April 19th, 2024, 12:39 am

How to refresh a hidden skin

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to refresh a hidden skin

Post by balala »

fonpaolo wrote:UpdateDivider=-10 means nothing...
Sorry fonpaolo, but I think UpdateDivider=-10 means exactly the same thing as UpdateDivider=-1. If the UpdateDivider is negative, doesn't matter which value do you use, they are working the same way.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: How to refresh a hidden skin

Post by fonpaolo »

balala wrote:Sorry fonpaolo, but I think UpdateDivider=-10 means exactly the same thing as UpdateDivider=-1. If the UpdateDivider is negative, doesn't matter which value do you use, they are working the same way.
I know that every negative number is treated by Rainmeter as "-1", but, why not use the right terminology? ;-)
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to refresh a hidden skin

Post by balala »

fonpaolo wrote:but, why not use the right terminology? ;-)
Sorry, what would be the right terminology?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to refresh a hidden skin

Post by jsmorley »

balala wrote:Sorry, what would be the right terminology?
I think UpdateDivider=-1 would be preferred, although any negative number will work. It's more or less the same that Update=1 is the same as Update=16 isn't it...
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: How to refresh a hidden skin

Post by fonpaolo »

Well, if I'm not wrong, I've always seen UpdateDivider=-1 as correct, as I said, as is mentioned in the Docs: "When UpdateDivider is a negative number, the measure will update only once (when the skin is loaded or refreshed)"
But, then, you'll always see UpdateDivider=-1 in the code.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to refresh a hidden skin

Post by jsmorley »

fonpaolo wrote:Well, if I'm not wrong, I've always seen UpdateDivider=-1 as correct, as I said, as is mentioned in the Docs: "When UpdateDivider is a negative number, the measure will update only once (when the skin is loaded or refreshed)"
But, then, you'll always see UpdateDivider=-1 in the code.
Still, I guess I could make an argument that you might want to use the Neg() mathematical function in a bang to toggle a variable defining the UpdateDivider between some value and "only once", by simply making whatever is there the "negative" of itself.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
MyUD=5

[MeasureCalc]
Measure=Calc
Formula=(MeasureCalc % 10) + 1
UpdateDivider=#MyUD#
DynamicVariables=1

[MeterOne]
Meter=String
MeasureName=MeasureCalc
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=[!SetVariable MyUD "(Neg(#MyUD#))"]
Not something I have ever seen, and I think there are better ways, but still...
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to refresh a hidden skin

Post by balala »

jsmorley wrote:Still, I guess I could make an argument that you might want to use the Neg() mathematical function in a bang to toggle a variable defining the UpdateDivider between some value and "only once", by simply making whatever is there the "negative" of itself.
I have to admit I had no idea about the existence of a such function, but now knowing it exist, it seems completely useless for me. Finally Neg(x) = -x. So why had it been introduced (just a rhetorical question)?
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: How to refresh a hidden skin

Post by fonpaolo »

Well jsmorley, that's something I never thought of...
I often use mathematical formulas , with Hidden, (it's the only one it came to my mind now), but for UpdateDivider I "always" use !SetOption... (well, very rarely I change UpdateDivider, to be honest).
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to refresh a hidden skin

Post by jsmorley »

balala wrote:I have to admit I had no idea about the existence of a such function, but now knowing it exist, it seems completely useless for me. Finally Neg(x) = -x. So why had it been introduced (just a rhetorical question)?
Beats me, but I guess I could envision some mathematical use for "toggling" a value between negative and positive. You could use it as a toggle between "true" and "false" for instance.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to refresh a hidden skin

Post by balala »

jsmorley wrote:You could use it as a toggle between "true" and "false" for instance.
:thumbup: Good point...