It is currently September 20th, 2019, 5:31 pm

Hide more groups at once

Help with creating, editing & fixing problems with skins
Nilvarno
Posts: 18
Joined: March 24th, 2019, 5:52 pm

Hide more groups at once

Nilvarno » March 24th, 2019, 5:59 pm

Hello, i'm trying to make a menu-like skin, with buttons and all. each button turns on an image and turns off all the others, that's why it's getting long.
This is the code i'm using:

Code: Select all

LeftMouseDownAction=[!RainmeterHideMeterGroup Game1][!RainmeterHideMeterGroup Game2][!RainmeterHideMeterGroup Game3][!RainmeterHideMeterGroup Multy1][!RainmeterHideMeterGroup Emu1]
Is there a way to shorten this? like: "LeftMouseDownAction=[!RainmeterHideMeterGroup Game1; Game2; Game3: Multy1; Emu1]" ?
Probably it's a noob question, but since i'm a noob, it fits :bow:
thank you very much!
User avatar
jsmorley
Developer
Posts: 19467
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Hide more groups at once

jsmorley » March 24th, 2019, 6:06 pm

No, there is no syntax like that...

However, while I don't know exactly what you are trying to do, keep in mind that you can do something like this:

Have every meter use a group option like "AllMeters" or some such.

Group=AllMeters

Then in your action, do:

LeftMouseUpAction=[!HideMeterGroup "AllMeters"][!ShowMeter MeterToShow]

Or you can use two group names:

Group=AllMeters | Group1

Then in your action, do:

LeftMouseUpAction=[!HideMeterGroup "AllMeters"][!ShowMeterGroup "Group1"]

So in effect, in the same action you first hide ALL meters, then just show the one(s) you want.



P.S. Don't use the deprecated "Rainmeter" prefix on bangs. So it's [!HideMeterGroup] NOT [!RanmeterHideMeterGroup].
https://docs.rainmeter.net/manual/bangs/#Rainmeter
Nilvarno
Posts: 18
Joined: March 24th, 2019, 5:52 pm

Re: Hide more groups at once

Nilvarno » March 24th, 2019, 7:29 pm

Thanks for the clarification, i'll do as you say :bow:

Edit: did it, it's way smarter and simplier, thanks again for the help