It is currently April 18th, 2024, 7:47 pm
Get help with creating, editing & fixing problems with skins
sinOS
Posts: 2 Joined: April 24th, 2021, 2:03 am
Post
by sinOS » June 2nd, 2021, 7:34 am
This is my first skin and I am having trouble getting my recycle bin to change icon. I have tried to troubleshoot it through using !Log to see where the code fail but having no luck.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
[Metadata]
Name=Bin
Author=sinOS
Information=Recycle Bin
Version=1.0
;;;;;;;;;;;;;;;;;;;;;;;Variables;;;;;;;;;;;;;;;;;;;;;;
[Variables]
Scale=1.0
BinImage=#@#\binempty.png
;;;;;;;;;;;;;;;;;;;;;;;Measure;;;;;;;;;;;;;;;;;;;;;;
[MeasureBin]
Measure=RecycleManager
RecycleType=Count
UpdateDivider=5
DynamicVariable=1
IfCondition=MeasureBin = 0
IfTrueAction=[!SetVariable BinImage "#@#\binempty.png"][!Log "A"][!UpdateMeter MeterBin][!Redraw]
IfCondition2=MeasureBin > 0
IfTrueAction2=[!SetVariable BinImage "#@#\binfull.png"][!Log "B"][!UpdateMeter MeterBin][!Redraw]
;OnChangeAction=[!UpdateMeter MeterBin][!Log "CHG"][!Redraw]
;;;;;;;;;;;;;;;;;;;;;;;Meter;;;;;;;;;;;;;;;;;;;;;;
[MeterBin]
Meter=Image
ImageName=#BinImage#
X=(#Scale#*0)
Y=(#Scale#*0)
W=(#Scale#*50)
DynamicVariable=1
LeftMouseUpAction=[!CommandMeasure MeasureBin OpenBin][!Log "LB"]
RightMouseUpAction=[!CommandMeasure MeasureBin EmptyBin][!SetVariable BinImage "#@#\binempty.png"][!Log "RB"][!Redraw]
Any help would be greatly appreciated... :P
CodeCode
Posts: 1365 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » June 2nd, 2021, 8:37 am
You cannot alter the Recycle Bin's icon through rainmeter.
You can create your own 'folder' with the
ideas From a recent post.
If you google
recycle bin icon regedit , you can find a fair few hits that explain it.
I think you might need to read upon this
Manual Section as I think you need an IfMatch rather then IfCondition.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
death.crafter
Rainmeter Sage
Posts: 1399 Joined: April 24th, 2021, 8:13 pm
Post
by death.crafter » June 2nd, 2021, 10:05 am
sinOS wrote: ↑ June 2nd, 2021, 7:34 am
This is my first skin and I am having trouble getting my recycle bin to change icon. I have tried to troubleshoot it through using !Log to see where the code fail but having no luck.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
[Metadata]
Name=Bin
Author=sinOS
Information=Recycle Bin
Version=1.0
;;;;;;;;;;;;;;;;;;;;;;;Variables;;;;;;;;;;;;;;;;;;;;;;
[Variables]
Scale=1.0
;;;;;;;;;;;;;;;;;;;;;;;Measure;;;;;;;;;;;;;;;;;;;;;;
[MeasureBin]
Measure=RecycleManager
RecycleType=Count
UpdateDivider=5
DynamicVariable=1
IfCondition=MeasureBin = 0
IfTrueAction=[!SetOption MeterBin ImageName "#*@*#\binempty.png"][!UpdateMeter MeterBin][!Redraw]
IfFalseAction=[!SetOption MeterBin ImageName "#*@*#\binfull.png"][!UpdateMeter MeterBin][!Redraw]
;;;;;;;;;;;;;;;;;;;;;;;Meter;;;;;;;;;;;;;;;;;;;;;;
[MeterBin]
Meter=Image
ImageName=#@#\binempty.png
X=0
Y=0
W=(#Scale#*50)
DynamicVariable=1
LeftMouseUpAction=[!CommandMeasure MeasureBin OpenBin][!Log "LB"]
RightMouseUpAction=[!CommandMeasure MeasureBin EmptyBin][!SetVariable BinImage "#@#\binempty.png"][!Log "RB"][!Redraw]
[/code]
Look at the changes.
Hope this works cause I can't test it. Next time post the skin in a zip or an rmskin file.
from the Realm of Death
sinOS
Posts: 2 Joined: April 24th, 2021, 2:03 am
Post
by sinOS » June 2nd, 2021, 10:51 am
Thanks for all your help, unfortunately I didnt post this properly. But I have in my resource folder created 2 icons for empty and full. I m going to start this over again and closely follow a similar skin as a guide. Next time i need help i will for sure rmskin it so that it can be tested as well.