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!
It is currently April 26th, 2024, 2:10 pm
A question about "Groups"
-
- Posts: 36
- Joined: October 21st, 2018, 2:55 am
A question about "Groups"
Last edited by Lssg97 on June 8th, 2020, 1:38 am, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16173
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: A question about "Groups"
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.
-
- Posts: 36
- Joined: October 21st, 2018, 2:55 am
Re: A question about "Groups"
Thanks, I got it.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.
-
- Posts: 209
- Joined: July 12th, 2020, 7:47 am
- Location: Ada, Garden City
Re: A question about "Groups"
In addition, you may store things into multiple groups:
It's useful when you want to call some measures or meters with wide or narrow targeting:
As we can see here, we can call it as wide "cpu" group or as "cpu_limiters" inside the big one.
Code: Select all
Group = group_one | group_two | group_three
Code: Select all
Group = cpu | cpu_sensors | cpu_limiters
-
- Rainmeter Sage
- Posts: 16173
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: A question about "Groups"
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.deflore08 wrote: ↑November 8th, 2020, 10:33 am In addition, you may store things into multiple groups:
It's useful when you want to call some measures or meters with wide or narrow targeting:Code: Select all
Group = group_one | group_two | group_three
As we can see here, we can call it as wide "cpu" group or as "cpu_limiters" inside the big one.Code: Select all
Group = cpu | cpu_sensors | cpu_limiters
Not impossible, but as said it's not easy, especially on longer and more complex codes.