Ok, I have an Image Meter for the RB with a ToolTip. But I prefer to remove the Text for items and size of RB and have it as part of the Tooltip as well. Hover over RB icon to get:
Recycle Bin
L-click = Open
R-click = Empty
I'd like to display this:
Recycle Bin
30 items
974.3 MB
L-click = Open
R-click = Empty
My problem is that I'm using a Substitute command that doesn't work in the ToolTip. Is it possible to somehow make it work? I have tried several things, using IfCommands instead but it won't work. I assume it's not possible. However if someone knows different any advice would be great
If I add MeasureName= to the Image Meter it causes the image to disappear. But they're needed to display the Meter info???
Onto problem number two.
As I can't get the Tooltip to work, yet, I have a Meter showing the required info. The original code had Text=%1 items for the Meter. I used a Substitute= command to change "0 items" to "Empty", Which worked fine, or so I thought until the number reached 30 items! Now I get "3Empty" due to the substitute removing the 0 items text and replacing it with Empty. Is there a way around this problem? Again, I've tried IfCommands, which doesn't work at all no matter where I aim it at. I've also tried looking at the manual extensively to try and glean some info about text, strings, measures, meters, ifcommands, regexp's, and a ton of other stuff just to try and solve this!!!
But alas, I'm stumped and need the help of an expert if one is available and kind enough to help please
Here's my current code:
Code: Select all
;---------------------------------------------------------------------
; RECYCLE BIN
;---------------------------------------------------------------------
[Bin]
Meter=Image
ImageName=#@#Launchers\Bin Empty (orange)
LeftMouseUpAction=!Execute [!PluginBang "mBinItems OpenBin"]
RightMouseUpAction=!Execute [!PluginBang "mBinItems EmptyBin"]
ToolTipIcon=Info
ToolTipTitle="Recycle Bin"
ToolTipText="%1#CRLF#%2B#CRLF##CRLF#L-click = Open#CRLF#R-click = Empty"
X=12
Y=25r
W=34
H=34
[mBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=2
Substitute=".0":" items"
;,"0 items":"Empty"
IfCondition=BinInfo = 0
IfTrueAction=[!SetOption BinInfo Text Empty] [!UpdateMeter *] [!Redraw]
IfFalseAction=[!SetOption BinInfo Text %1#CRLF#%2B] [!UpdateMeter *] [!Redraw]
DynamicVariables=1
[mBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=2
Substitute=".0":""
[BinInfo]
Meter=String
MeasureName=mBinItems
MeasureName2=mBinSize
MeterStyle=sAllText | sHighlight
StringAlign=Right
Text="%1#CRLF#%2B"
LeftMouseUpAction=!Execute [!PluginBang "mBinItems OpenBin"]
RightMouseUpAction=!Execute [!PluginBang "mBinItems EmptyBin"]
ToolTipIcon=Info
ToolTipTitle="Recycle Bin"
ToolTipText="L-click = Open#CRLF#R-click = Empty"
AutoScale=1
X=103r
Y=0r