The problem is that the Button meter only supports one MeasureName=, and doesn't support MeasureName2, MeasureName3, ect., and therefore no %2, %3 etc. You can easily solve this with
SectionVariables in the Tooltip.
The only real issue is that AutoScale never works in the context of a Toolip... It only works in the context of the Text option on a String meter. This is mostly due to the fact that AutoScale is pointless without the automatic "k,M,G,T" postfix on the end of it, and the modifiers on a measure section variable are number values.
So you need to use the
scale modifier (and optionally the
decimal places modifier) in the [SectionVariable]. You will have to "scale" by some set amount, and not "autoscale". It would take something a bit more complicated to replicate true AutoScale.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Metadata]
Name=EmptyRecBin
[Variables]
Scale=1048576
ScalePostfix=M
Decimals=2
[measureBinItems]
; This measure returns the amount of items in the Recycle Bin.
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=COUNT
UpdateDivider=3
[measureBinSize]
; This measure returns the amount of items in the Recycle Bin.
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=SIZE
UpdateDivider=3
[MeterEmpty]
Meter=Button
ButtonImage=ButtonBitmap.png
ButtonCommand=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipType=1
ToolTipText=[measureBinItems] element(s), [measureBinSize:/#Scale#, #Decimals#] #ScalePostfix#B
MouseOverAction=[!SetOption MeterText Text "Mouse OVER state"][!UpdateMeter MeterText][!Redraw]
DynamicVariables=1
2014-08-24_162942.png
As for the variable "Scale", that can be these values as desired. You will probably want to show some decimal places, so it doesn't just show "0" when there is actually something there.
1024 = Kilobytes (k)
1048576 = Megabytes (M)
1073741824 = Gigabytes (G)
Note: Don't use !Execute or !PluginBang. Those were long ago deprecated and should not be used. I corrected your code.
You do not have the required permissions to view the files attached to this post.