It is currently April 27th, 2024, 11:00 am

[Solved]Recycle bin

Get help with creating, editing & fixing problems with skins
User avatar
Maggz
Posts: 2
Joined: March 7th, 2024, 10:23 pm

[Solved]Recycle bin

Post by Maggz »

I am finding an odd occurance where if i click the bin and just delete one item from it the skin doesn't know i have deleted only one item from the bin. The bin works properly if i delete all items using the empty recycle bin button in the folder as well as if i use the command


Here are my Variables, Measures and Meters:

Code: Select all

[Variables]
binfull=Recycle-Bin_solar_full.png
binempty=Recycle-Bin_solar.png
TSize="" 

[MeasureBin]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=ALL
RecycleType=COUNT
IfAboveValue=0
IfAboveAction=[!SetOption TrashImage ImageName "#ImagePath##binfull#"] [!UpdateMeter *] [!Redraw]
IfEqualValue=0
IfEqualAction=[!SetOption TrashImage ImageName "#ImagePath##binempty#"] [!UpdateMeter *] [!Redraw]
UpdateDivider=3

[MeasureSize]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=ALL
RecycleType=SIZE
IfCondition=1
IfTrueAction=[!SetVariable TSize [&LuaScript:FormatNumber([&MeasureSize:],4,'1k')]]
OnChangeAction=[!SetVariable TSize [&LuaScript:FormatNumber([&MeasureSize:],4,'1k')]]
UpdateDivider=3

[TrashImage]
Meter=IMAGE
ImageName=#ImagePath#emptytrash.png
X=35
Y=3
W=35
H=35
AntiAlias=1
LeftMouseUpAction=!CommandMeasure MeasureBin OpenBin
RightMouseUpAction=!CommandMeasure MeasureBin EmptyBin
ToolTipTitle="Recycle Bin Options"
ToolTipText="Left Click to Open Recycle Bin.#CRLF#Right Click to Empty Recycle Bin"

[MeterCount]
Meter=STRING
MeterStyle=styleLeftTextW
MeasureName=MeasureBin
FontColor=#FCR#
X=113
Y=25
W=60
H=14
Postfix=" : Items"
InlineSetting=Color | #FCN#
InlinePattern=\w*( : Items)

[MeterSize]
Meter=STRING
MeterStyle=styleRightTextW
MeasureName=MeasureSize
FontColor=#FCO#
X=230
Y=0r
W=200
H=14
AutoScale=1
NumOfDecimals=1
Text="#TSize#B"
InlineSetting=Color | #FCN#
InlinePattern=\w*(B)
InlineSetting=Color | #FCN#
InlinePattern=\w*(kB)
InlineSetting2=Color | #FCN#
InlinePattern2=\w*(MB)
InlineSetting3=Color | #FCN#
InlinePattern3=\w*(GB)
InlineSetting4=Color | #FCN#
InlinePattern4=\w*(TB)
DynamicVariables=1
Is this a limitation or am i just missing something all together? Like i said, if i open the bin and there are 5 items in it and i manually delete ONLY 1 item the count for my items stays at 5, If i where to then just click the empty recycle bin button in the folder not the skin it shows 0. Which that part works as stated.

If anyone else has this issue or sees some mistake I have made id really appreciate it.
Last edited by Maggz on March 8th, 2024, 9:12 pm, edited 1 time in total.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Recycle bin

Post by eclectic-tech »

That is "normal" recycle bin activity.
See an explanation here https://forum.rainmeter.net/viewtopic.php?f=5&t=26425&p=138029&hilit=recycle#p138029
User avatar
Maggz
Posts: 2
Joined: March 7th, 2024, 10:23 pm

Re: Recycle bin

Post by Maggz »

I tried searching and searching for exactly that answer before i posted, i wish id have seen this. TY. So this is a limitation of the dll then, this i understand.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Recycle bin

Post by eclectic-tech »

Not always easy to find things in the +165,000 post in these forums :uhuh:

Happy to help :great: