It is currently April 18th, 2024, 7:47 pm

First Skin ... Please Help

Get help with creating, editing & fixing problems with skins
sinOS
Posts: 2
Joined: April 24th, 2021, 2:03 am

First Skin ... Please Help

Post by sinOS »

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
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: First Skin ... Please Help

Post by CodeCode »

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.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: First Skin ... Please Help

Post by death.crafter »

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

Re: First Skin ... Please Help

Post by sinOS »

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.