Is there any way to get a "Meter=Image" to set the height in relation to the number of active meters...? Or perhaps there's another way to do it. Hopefully this request will spark some interest with the likes of people that like to think outside the box..
Just to show what I've been working on, below is an excerpt from my modified 'disk.ini' file:
The measures:
Code: Select all
[NameDisk1]
IgnoreRemovable=0
Measure=FreeDiskSpace
Drive=#disks.Drive1#
Label=1
[MeasureDisk1]
IgnoreRemovable=0
Measure=FreeDiskSpace
Drive=#disks.Drive1#
[CountDisk1]
IgnoreRemovable=0
Measure=Calc
Formula=MeasureDisk1
IfBelowValue=1
IfBelowAction=!execute [!RainmeterHideMeter Disk1Label][!RainmeterHideMeter Disk1Right][!RainmeterHideMeter Disk1Bar]
IfAboveValue=0
IfAboveAction=!execute [!RainmeterShowMeter Disk1Label][!RainmeterShowMeter Disk1Right][!RainmeterShowMeter Disk1Bar]
Code: Select all
[Disk1Label]
Meter=STRING
MeterStyle=TextLeftStyle
Y=#h.Item#
MeasureName=NameDisk1
Label=1
Prefix="#disks.Drive1#\ "
LeftMouseUpAction=!Execute ["#disks.Drive1#"]
MouseActionCursor=1
[Disk1Right]
Meter=STRING
MeterStyle=TextRightStyle
MeasureName=MeasureDisk1
[Disk1Bar]
Meter=BAR
MeterStyle=SeperatorStyle
MeasureName=MeasureDisk1
:!: Can I perhaps set a measure to simply count the number of drives that are displayed in the config? Let's call this hidden meter "CountDisks" for this example: when the ShowMeter bang is executed, I could add a counter to the "CountDisks" measure, and then use the total value of "CountDisks" in the "H" setting for the background "Meter=Image".
But... I'm not sure how to do that. I've read through the online help, but either what I'm looking for doesn't exist, or I'm just not seeing it. Any ideas?
Edit:
Could I possibly use the "!RainmeterSetVariable" bang command inside the "IfBelowAction" and "IfAboveAction" bangs to do this?
Or should I rather change from using "!RainmeterShowMeter" to "!RainmeterEnableMeasure" and use one "!RainmeterSetVariable" in each of the measures instead?