dfghrngsdkg wrote: ↑September 13th, 2019, 11:28 am
Hello and Thank you for this nice little Meter.
Just one question: Is it possible to hide/show (toggle on/off) individual meter instead to hide/show all meter? If so, what do I have to do, how must the code look/be like in this specific meter of yours?
Yes.
Groups can be used to define skins, meters, or measures. The advantage of groups is being able to control multiple items (skins, meters, or measures) using a single group action bang instead of having to specify and take the action on each item. My skin does not use grouping (per say), it takes advantage of the asterisk character (*) which refers to "all items" when used in an action bang.
As an example, here is the code for a simple 3 "page" skin which uses groups to define meters.
3page.gif
Look at the group definitions to see how they are applied to meters and used in action bangs to control the display.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
Group=#RootConfig#
; DefaultUpdateDivider=
SkinWidth=420
SkinHeight=120
OnRefreshAction=[!HideMeterGroup Page][!ShowMeterGroup Page1]
; Background=
BackgroundMode=2
SolidColor=220,220,220,210
; ========= Metadata ==========
[Metadata]
Name=
Author=
Information=
License=Creative Commons Share-Alike NC 4
Version=
; ========= Variables ==========
[Variables]
SetPage=Page3
; ========= Top Menu Meters ==========
[MeterPage1]
Meter=String
Text=Page1
SolidColor=0,0,0,1
Padding=10,5,5,10
LeftMouseUpAction=[!SetVariable SetPage Page1][!WriteKeyValue Variables SetPage Page1][!HideMeterGroup Page][!ShowMeterGroup Page1][!UpdateMeter *][!Redraw]
InlineSetting=Weight | 600
[MeterPage2]
Meter=String
X=120R
Text=Page2
SolidColor=0,0,0,1
Padding=10,5,5,10
LeftMouseUpAction=[!SetVariable SetPage Page2][!WriteKeyValue Variables SetPage Page2][!HideMeterGroup Page][!ShowMeterGroup Page2][!UpdateMeter *][!Redraw]
InlineSetting=Weight | 600
[MeterPage3]
Meter=String
Text=Page3
X=120R
SolidColor=0,0,0,1
Padding=10,5,5,10
LeftMouseUpAction=[!SetVariable SetPage Page3][!WriteKeyValue Variables SetPage Page3][!HideMeterGroup Page][!ShowMeterGroup Page3][!UpdateMeter *][!Redraw]
InlineSetting=Weight | 600
; ========= Page1 Meters ==========
[MeterPage1Text]
Group=Page | Page1
Hidden=1
Meter=String
SolidColor=0,0,0,1
Y=24
Padding=10,5,10,10
Text="This is page one of a three page skin.#CRLF##CRLF#You can use this as a template to have a multiple page skin.#CRLF#Separate pages allow you to put similar items on each page, #CRLF#expressing a different style on each."
; ========= Page2 Meters ==========
[MeterPage2Text]
Group=Page | Page2
Hidden=1
Meter=String
SolidColor=0,0,0,1
Y=24
Padding=10,5,10,10
Text="This is page two of a three page skin.#CRLF##CRLF#You can use this as a template to have a multiple page skin. #CRLF##CRLF#Separate pages allow you to put similar items on each page."
InlineSetting=Oblique
; ========= Page3 Meters ==========
[MeterPage3Text]
Group=Page | Page3
Hidden=1
Meter=String
Y=24
SolidColor=0,0,0,1
Padding=10,5,10,10
Text="This is page three of a three page skin.#CRLF##CRLF#You can use this as a template to have a multiple page skin. #CRLF##CRLF#Separate pages allow you to express a different style on each."
InlineSetting=Color | 64,64,64
dfghrngsdkg wrote:I ask because I came across different threads with different suggestions e.g. Some say something like that a: "Group=HideSkin" has to be placed additionally into the Rainmeter.ini, some say that this Group=HideSkin has to be placed -sometimes additionally to the Rainmeter.ini- into each of the active skin's .ini and so fort, so now I am confused about the right way to get it done.
With kind regards,
All of those methods will do the same thing; they create groups of skins. Normally, this is done by adding the group definition in the [Rainmeter] section of the skin when you create it:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
Group=Group1 | Group2
The "section" that includes the "Group=..." definition determines if it is defining a group of skins (when added to the [Rainmeter] section), a group of meters (when added to a meter sections), or a group of measures (when added to a measure sections).
Look through the info here and in the manual and ask any questions you may still have...
You do not have the required permissions to view the files attached to this post.