It is currently May 25th, 2020, 2:34 pm

GroupGroup bangs?

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

GroupGroup bangs?

Post by Cariboudjan »

If this is already possible, sorry.

What if I wanted to set parameters for a Group of meters within a Group of configs? Example

UpdateMeterGroupGroup
UpdateMeasureGroupGroup
EnableMouseActionGroupGroup


[!UpdateMeterGroupGroup "METERGROUP" "CONFIGGROUP"]
[!UpdateMeasureGroupGroup "MEASUREGROUP" "CONFIGGROUP"]
[!EnableMouseActionGroupGroup "LeftMouseUpAction" "METERGROUP" "CONFIGGROUP"]
User avatar
jsmorley
Developer
Posts: 20629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: GroupGroup bangs?

Post by jsmorley »

No, that is not possible today.

Skin Groups are used to support skin Bangs

https://docs.rainmeter.net/manual/bangs/#SkinGroup

I'm not sure what would be involved in enhancing the "configname" parameter of existing Meter / Measure bangs to support a group. It certainly couldn't be done with the existing parameter, as the name of a group and the name of a config are not in any way mutually exclusive.

This feels like it would need just a BOATLOAD of entirely new bangs, and I confess I don't see the burning need.
User avatar
Yincognito
Posts: 1611
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: GroupGroup bangs?

Post by Yincognito »

Cariboudjan wrote:
May 17th, 2020, 4:10 pm
If this is already possible, sorry.

What if I wanted to set parameters for a Group of meters within a Group of configs? Example

UpdateMeterGroupGroup
UpdateMeasureGroupGroup
EnableMouseActionGroupGroup


[!UpdateMeterGroupGroup "METERGROUP" "CONFIGGROUP"]
[!UpdateMeasureGroupGroup "MEASUREGROUP" "CONFIGGROUP"]
[!EnableMouseActionGroupGroup "LeftMouseUpAction" "METERGROUP" "CONFIGGROUP"]
I think it's possible to do what you want with the current set of Rainmeter features today, by using the * (i.e. all) parameter instead of a config name in the UpdateMeasureGroup / UpdateMeterGroup / EnableMouseActionGroup bangs, assuming your group name is unique in all the active skins (you could add the config name or the config group name as a prefix in the name of the measure / meter group in order to be sure of that, for example). You could try, say:

Code: Select all

LeftMouseUpAction=[!UpdateMeasureGroup SomeUniqueMeasureGroupFromTheActiveConfigs *]
and see if it works as expected. My guess, based on the incomplete testing of this, is that it will work, but obviously it's you who must decide if it suits your needs.