It is currently October 19th, 2021, 2:51 pm

[Suggestion] [!Update *]

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 194
Joined: May 12th, 2019, 8:55 am

[Suggestion] [!Update *]

Post by Cariboudjan »

Sometimes, I'd like to update all meters, update all measures, and redraw the skin, regardless of UpdateDivider=-1. So I've been using:

[!UpdateMeasure *][!UpdateMeter *][!Redraw]

Would love it if [!Update *] performed an update and updated all meters and measures, even if they are UpdateDivider=-1.

Or maybe an [!UpdateAll]?
User avatar
SilverAzide
Rainmeter Sage
Posts: 1615
Joined: March 23rd, 2015, 5:26 pm

Re: [Suggestion] [!Update *]

Post by SilverAzide »

Gadgets Wiki GitHub More Gadgets...
User avatar
jsmorley
Developer
Posts: 22368
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Suggestion] [!Update *]

Post by jsmorley »

SilverAzide wrote: July 27th, 2021, 12:27 pm Isn't this already available? https://docs.rainmeter.net/manual/bangs/#Update

The difference is that !UpdateMeasure will override any UpdateDivider you might have on the measure. !Update does not.

I'm not opposed in principle, but I'm not sure we are going to add a new bang just to save a little typing....

[!UpdateAll]
Meaning:
[!UpdateMeasure *][!UpdateMeter *][!Redraw]

I would be opposed to "overloading" the !Update bang to have two entirely different meanings with !Update and !Update *

I get the charm of the whole idea, but it feels pretty "nice to have" to me. You never know though...
User avatar
SilverAzide
Rainmeter Sage
Posts: 1615
Joined: March 23rd, 2015, 5:26 pm

Re: [Suggestion] [!Update *]

Post by SilverAzide »

jsmorley wrote: July 27th, 2021, 12:29 pm The difference is that !UpdateMeasure will override any UpdateDivider you might have on the measure. !Update does not.
Ohhh, I missed that distinction. Thanks!
Gadgets Wiki GitHub More Gadgets...
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Suggestion] [!Update *]

Post by Yincognito »

One can create "shortcuts" to long chain of bangs (especially the non dynamic ones) using variables though:

Code: Select all

[Variables]
!UpdateAll=[!UpdateMeasure *][!UpdateMeter *][!Redraw]
...
...
...
[SomeMeter]
...
SomeAction=...#!UpdateAll#...
...
...
...
Or, if he likes it more between square brackets in order to look more like a bang ... [#!UpdateAll]. :confused:
User avatar
jsmorley
Developer
Posts: 22368
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Suggestion] [!Update *]

Post by jsmorley »

Yincognito wrote: July 27th, 2021, 2:42 pm One can create "shortcuts" to long chain of bangs (especially the non dynamic ones) using variables though:

Code: Select all

[Variables]
!UpdateAll=[!UpdateMeasure *][!UpdateMeter *][!Redraw]
...
...
...
[SomeMeter]
...
SomeAction=...#!UpdateAll#...
...
...
...
Or, if he likes it more between square brackets in order to look more like a bang ... [#!UpdateAll]. :confused:
True... Good point.
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Suggestion] [!Update *]

Post by Yincognito »

jsmorley wrote: July 27th, 2021, 2:43 pm True... Good point.
I guess you could do even:

Code: Select all

...
...
...
[?UpdateAll]
Measure=String
String=[!UpdateMeasure *][!UpdateMeter *][!Redraw]
UpdateDivider=-1
...
...
...
[SomeMeter]
...
SomeAction=...[?UpdateAll]...
...
...
...
if you really really wanted to. The exclamation mark doesn't work as the first character in a section name for obvious reasons, of course, since it's used by the parser to detect actual bangs.
User avatar
Cariboudjan
Posts: 194
Joined: May 12th, 2019, 8:55 am

Re: [Suggestion] [!Update *]

Post by Cariboudjan »

Yincognito wrote: July 27th, 2021, 2:42 pm One can create "shortcuts" to long chain of bangs (especially the non dynamic ones) using variables though:

Code: Select all

[Variables]
!UpdateAll=[!UpdateMeasure *][!UpdateMeter *][!Redraw]
...
...
...
[SomeMeter]
...
SomeAction=...#!UpdateAll#...
...
...
...
Or, if he likes it more between square brackets in order to look more like a bang ... [#!UpdateAll]. :confused:
Yeah I'll probably start doing this. Thanks.
User avatar
Yincognito
Rainmeter Sage
Posts: 4069
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Suggestion] [!Update *]

Post by Yincognito »

Cariboudjan wrote: August 3rd, 2021, 2:20 am Yeah I'll probably start doing this. Thanks.
No problem. :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 13324
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [Suggestion] [!Update *]

Post by balala »

Related to the original question, I realized just now that [!UpdateAll] might work, but there is a small problem with [!Update *], which can be already used to update all loaded skins. So probably this can't be used for the described operation.