It is currently May 2nd, 2024, 4:03 pm

Help with a recycle bin skin

Get help with creating, editing & fixing problems with skins
User avatar
Buddabelly70
Posts: 40
Joined: March 11th, 2010, 12:35 pm
Location: Maple Park, IL

Help with a recycle bin skin

Post by Buddabelly70 »

Could someone please tell me how to change this so it will show the correct amount in the bin, if i recycle 15gb's it will only show it has 160 mb's in it, not quite sure why it does that. Thanks in advance to all that help :bow:

Code: Select all

[Rainmeter]
Author=mic831
Update=500
AppVersion=14001
BackgroundMode=2
SolidColor=00000001
DynamicWindowSize=1
BackgroundMargins=10,10,10,10
[Variables]
Drives=ALL
MaxInKB=1000000
;set drives to monitor, and max size in kilobytes
FontColor=0, 255, 255
FontColor2=255, 255, 255, 180
FontName=CHILLER
FontHeight=16
FontHeight2=13
AntiAlias=1


; -------------------------

[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=#Drives#
RecycleType=SIZE
Autoscale=1
UpdateRate=60

[MeasureBinSizeKB]
Measure=CALC
Formula=MeasureBinSize/100

[MeasureBinNum]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=#Drives#
RecycleType=COUNT
UpdateRate=60

[MeasureIsFull]
Measure=CALC
Formula=MeasureBinNum>0

[MeasureIsFullInverted]
Measure=CALC
Formula=MeasureIsFull+2



[BinIcon]
Meter=IMAGE
MeasureName=MeasureIsFull
ImageName=%1.png
X=-9
Y=0
W=106
H=106
AntiAlias=1
LeftMouseDownAction=!execute [!RainmeterPluginBang "MeasureBinNum OpenBin"]
RightMouseDownAction=!execute [!RainmeterPluginBang "MeasureBinNum EmptyBin"]

[NetworkTitle]
Meter=String
X=116
Y=-3
FontColor=0,255,255,
StringAlign=Left
Fontsize=18
FontFace=CHILLER
X=155
Y=-3
Text="Recycle Bin"
AntiAlias=1

[countLabel]
Meter=STRING
X=155
Y=26
FontColor=28,134,238,
FontFace=Calibri
FontSize=11
StringAlign=RIGHT
StringStyle=Italic
AntiAlias=1
Text="Count:"
[sizeLabel]
Meter=STRING
X=155
Y=48
FontColor=28,134,238,
FontFace=Calibri
FontSize=11
StringAlign=RIGHT
StringStyle=Italic
AntiAlias=1
Text="Size:"

[MeterCount]
Meter=STRING
MeasureName=MeasureBinNum
FontColor=#FontColor#
FontSize=16
FontFace=#FontName#
X=160
Y=25
Postfix=" items"
Text=%1
AntiAlias=1

[MeterSize]
Meter=STRING
MeasureName=MeasureBinSizeKB
FontColor=#FontColor#
FontSize=16
FontFace=#FontName#
X=160
Y=46
Text=%1
Postfix="B"
AutoScale=1
AntiAlias=1
NumOfDecimals=1
I have a million excuses, which one do you want to hear?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with a recycle bin skin

Post by jsmorley »

Sure you are not just hitting the max size of the recycle bin in Windows? It only will allow so much to be deleted to the bin at a time. 15gb is a lot to "recycle" at once.
User avatar
Buddabelly70
Posts: 40
Joined: March 11th, 2010, 12:35 pm
Location: Maple Park, IL

Re: Help with a recycle bin skin

Post by Buddabelly70 »

jsmorley wrote:Sure you are not just hitting the max size of the recycle bin in Windows? It only will allow so much to be deleted to the bin at a time. 15gb is a lot to "recycle" at once.
I was using another skin before this one and it would show well over 15gb at a time in it
I have a million excuses, which one do you want to hear?
User avatar
Buddabelly70
Posts: 40
Joined: March 11th, 2010, 12:35 pm
Location: Maple Park, IL

Re: Help with a recycle bin skin

Post by Buddabelly70 »

Buddabelly70 wrote: I was using another skin before this one and it would show well over 15gb at a time in it
This is the other one i was using.

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.
Author=poiru
AppVersion=1003000
Update=1000

[Metadata]
; Contains basic information of the skin.
Name=Recycle Bin
Description=This skin 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=Chiller
textSize=14
colorBar=235,170,0,255
colorText=0,189,255,255

; ----------------------------------
; 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=3
; 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=14
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.
; ----------------------------------

[meterBackground]
Meter=IMAGE
ImageName=#SKINSPATH#\illustro\SHARED\Background1Line.png
; #SKINSPATH# is a global variable that stands for your skin path. It is
; usually Documents\Rainmeter\Skins.
X=0
Y=0

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=9
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=!Execute [!RainmeterPluginBang "measureBinItems OpenBin"]
RightMouseUpAction=!Execute [!RainmeterPluginBang "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=34
W=185
H=19
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=17
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=0
I have a million excuses, which one do you want to hear?
User avatar
spx
Developer
Posts: 686
Joined: August 15th, 2009, 2:41 pm
Location: Osaka, JPN

Re: Help with a recycle bin skin

Post by spx »

Check MeasureBinSizeKB:
[MeasureBinSizeKB]
Measure=CALC
Formula=MeasureBinSize/100
User avatar
Buddabelly70
Posts: 40
Joined: March 11th, 2010, 12:35 pm
Location: Maple Park, IL

Re: Help with a recycle bin skin

Post by Buddabelly70 »

spx wrote:Check MeasureBinSizeKB:
What should i change it to?
I have a million excuses, which one do you want to hear?
User avatar
Buddabelly70
Posts: 40
Joined: March 11th, 2010, 12:35 pm
Location: Maple Park, IL

Re: Help with a recycle bin skin

Post by Buddabelly70 »

Buddabelly70 wrote: What should i change it to?
Never mind, just figured it out, changed the 100 to 1, all good now, Thanks :thumbup:
I have a million excuses, which one do you want to hear?