It is currently November 25th, 2020, 2:04 pm

A question about "Groups"

General topics related to Rainmeter.
User avatar
Lssg97
Posts: 28
Joined: October 21st, 2018, 2:55 am

A question about "Groups"

Post by Lssg97 »

Hi Guys,
Recently, I am studying the usage of "Group", but I feel that the Document introduces very little :( . I only have one question: Can Measure and Meter be put in the same Group?
Thanks!
Last edited by Lssg97 on June 8th, 2020, 1:38 am, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 11807
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: A question about "Groups"

Post by balala »

Lssg97 wrote: June 7th, 2020, 6:43 am I only have one question: Can Measure and Meter be put in the same Group?
A group of measures and one of meters can have the same name, but those are different groups. For instance if you have a group of measures named MyGroup and a group of meters named as well as MyGroup, if you're using an [!UpdateMeasureGroup "MyGroup"] obviously you get updated only the measures belonging to the MyGroup group, while with [!UpdateMeterGroup "MyGroup"] you get updated only the meters.
User avatar
Lssg97
Posts: 28
Joined: October 21st, 2018, 2:55 am

Re: A question about "Groups"

Post by Lssg97 »

balala wrote: June 7th, 2020, 8:37 am A group of measures and one of meters can have the same name, but those are different groups. For instance if you have a group of measures named MyGroup and a group of meters named as well as MyGroup, if you're using an [!UpdateMeasureGroup "MyGroup"] obviously you get updated only the measures belonging to the MyGroup group, while with [!UpdateMeterGroup "MyGroup"] you get updated only the meters.
Thanks, I got it. :thumbup:
User avatar
deflore08
Posts: 96
Joined: July 12th, 2020, 7:47 am

Re: A question about "Groups"

Post by deflore08 »

In addition, you may store things into multiple groups:

Code: Select all

Group = group_one | group_two | group_three
It's useful when you want to call some measures or meters with wide or narrow targeting:

Code: Select all

Group = cpu | cpu_sensors | cpu_limiters 
As we can see here, we can call it as wide "cpu" group or as "cpu_limiters" inside the big one.
User avatar
balala
Rainmeter Sage
Posts: 11807
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: A question about "Groups"

Post by balala »

deflore08 wrote: November 8th, 2020, 10:33 am In addition, you may store things into multiple groups:

Code: Select all

Group = group_one | group_two | group_three
It's useful when you want to call some measures or meters with wide or narrow targeting:

Code: Select all

Group = cpu | cpu_sensors | cpu_limiters 
As we can see here, we can call it as wide "cpu" group or as "cpu_limiters" inside the big one.
Right, however note that including a meter (or measure) into multiple groups can cause trouble.You have to be extremely careful how are you manipulating those groups, because in some circumstances can cause confusion. For instance you have to be careful not to operate in paralel on more groups, causing confusion.
Not impossible, but as said it's not easy, especially on longer and more complex codes.