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.fonpaolo wrote:UpdateDivider=-10 means nothing...
It is currently April 23rd, 2024, 9:52 pm
How to refresh a hidden skin
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to refresh a hidden skin
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: How to refresh a hidden skin
I know that every negative number is treated by Rainmeter as "-1", but, why not use the right terminology?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.
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to refresh a hidden skin
Sorry, what would be the right terminology?fonpaolo wrote:but, why not use the right terminology?
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: How to refresh a hidden skin
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...balala wrote:Sorry, what would be the right terminology?
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: How to refresh a hidden skin
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.
But, then, you'll always see UpdateDivider=-1 in the code.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: How to refresh a hidden skin
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.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.
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#))"]
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to refresh a hidden skin
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)?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.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: How to refresh a hidden skin
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).
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).
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: How to refresh a hidden skin
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.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)?
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to refresh a hidden skin
Good point...jsmorley wrote:You could use it as a toggle between "true" and "false" for instance.