Good afternoon!
Cordial greeting to the community
I've been using Rainmeter for a while now, and at the moment all the Skins work when updating the data on the screen, except for the recycle bin. From the beginning I installed several skins, and I realized after a while that the trash updated the data only when deleting things, that is, One deleted 10 files and marked in the Skin that there were just 10 items, but at the moment If I delete say 5 of those files from the recycle bin, the same 10 items still appear on the Skin.
(I already deleted and uninstalled all the data and skins of the program and reinstalled it from scratch, but even with the factory skins from the recycle bin it still does not update the items)
I have the Version: 4.5.13
Thank you very much in advance
It is currently March 28th, 2024, 7:32 pm
Recycle Bin Items Update
-
- Posts: 3
- Joined: May 3rd, 2022, 4:58 pm
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Recycle Bin Items Update
We would need to see the code of your skin to see if it an issue with the skin.
But you can try this as I use t and it works correctly. It takes 5 secs to update
But you can try this as I use t and it works correctly. It takes 5 secs to update
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Name=Recycle bin
Author=CyberTheWorm
Information=Displays recycle bin info | Emty bin does not ask if you want to delete
Version=1.0.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Variables]
[MeasureRecycleCount]
Measure=RecycleManager
RecycleType=Count
UpdateDivider=5
[MeasureRecycleSize]
Measure=RecycleManager
RecycleType=Size
UpdateDivider=5
[MeterShapeRectangle]
Meter=Shape
X=0
Y=0
Shape=Rectangle 3,3,200,100 | Fill Color 32,32,32,255 | StrokeWidth 6 | StrokeColor 0,0,0,220
[MeterRecycle]
Meter=String
X=103
Y=20
MeasureName=MeasureRecycleCount
MeasureName2=MeasureRecycleSize
Text=Recycle Bin#CRLF#%1 Items#CRLF#%2B
FontColor=255,255,255,255
StringAlign=Center
AntiAlias=1
AutoScale=1
NumOfDecimals=0
[MeterOpenBin]
Meter=String
X=10
Y=80
MeasureName=MeasureRecycleSize
Text=Open
FontColor=255,255,255,255
StringAlign=Left
AntiAlias=1
LeftMouseUpAction=!CommandMeasure MeasureRecycleSize OpenBin
[MeterEmptyBin]
Meter=String
X=190
Y=80
MeasureName=MeasureRecycleSize
Text=Empty
FontColor=255,255,255,255
StringAlign=Right
AntiAlias=1
LeftMouseUpAction=!CommandMeasure MeasureRecycleSize EmptyBinSilent
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Posts: 3
- Joined: May 3rd, 2022, 4:58 pm
Re: Recycle Bin Items Update
Thanks for the prompt response CyberTheWorm
-This is the code that I currently use and it is the one that comes by default of the program.
-------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
I already copied your code, but it's still the same, it only updates the information when deleting the files, and in any mask that you add, the same thing happens.
What can be affecting?
-This is the code that I currently use and it is the one that comes by default of the program.
-------------------------------------------------------------------------------------------------------------------
Code: Select all
; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------
[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14
[Metadata]
; Contains basic information of the skin.
Name=Recycle Bin
Author=poiru
Information=Shows the state and size of your Recycle Bin.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
[measureBinItems]
; This measure returns the amount of items in the Recycle Bin.
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1
; UpdateDivider sets the rate at which the value of the measure is updated. It is
; calculated as follows: UpdateDivider x Update. In this case, Update is set to
; 1000 milliseconds (in the [Rainmeter] section). 1000 x 3 = 3000 ms or 3 seconds.
[measureBinSize]
; Returns the total size of the Recycle Bin in bytes.
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=3
; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------
[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleSeperator]
SolidColor=255,255,255,15
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=190
H=18
Text=Recycle Bin
; Even though the text is set to Recycle Bin, Rainmeter will display
; it as RECYCLE BIN, because styleTitle contains StringCase=Upper.
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty
; Hovering over this meter will display a tooltip with the text above.
; The #CRLF# variable creates a new line.
[meterBinItems]
Meter=String
MeterStyle=styleLeftText
MeasureName=measureBinItems
X=10
Y=40
W=190
H=14
Text=%1 items
; %1 stands for the value of MeasureName (measureBinItems in this case).
[meterBinSize]
Meter=String
MeterStyle=styleRightText
MeasureName=measureBinSize
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text=%1B
AutoScale=1
; Because measureBinSize returns the size in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
[meterSeperator]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
I already copied your code, but it's still the same, it only updates the information when deleting the files, and in any mask that you add, the same thing happens.
What can be affecting?
Last edited by SilverAzide on May 4th, 2022, 12:31 am, edited 1 time in total.
Reason: Please use code tags when posting code. It's the </> button.
Reason: Please use code tags when posting code. It's the </> button.
-
- Rainmeter Sage
- Posts: 5382
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Recycle Bin Items Update
JS Morley gives an explanation of the recycle bin function in this post: https://forum.rainmeter.net/viewtopic.php?p=138029&hilit=recycle+refresh#p138029
Your issue may be related to this, since constantly monitoring the bin is very CPU intensive.
Changes to the bin may not always be seen, unless you refresh the entire skin.
Your issue may be related to this, since constantly monitoring the bin is very CPU intensive.
Changes to the bin may not always be seen, unless you refresh the entire skin.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 3
- Joined: May 3rd, 2022, 4:58 pm
Re: Recycle Bin Items Update
Thanks eclectic-tech for your answer.
I now understand everything about the recycle bin, concluding that it is the way it would normally work all the time. Thank you for the explanation and clarification on the subject.
I now understand everything about the recycle bin, concluding that it is the way it would normally work all the time. Thank you for the explanation and clarification on the subject.