It is currently March 28th, 2024, 4:28 pm

Recycle bin

Get help with creating, editing & fixing problems with skins
Ace_323
Posts: 19
Joined: February 7th, 2018, 12:14 am

Recycle bin

Post by Ace_323 »

I'm trying to make a recycle bin skin but it wont work and i don't know why.

[Rainmeter]
Update=1000

[Measure]
Measure=RecycleManager
RecycleType=Count
Drives=all
DynamicVariables=1
IfCondition=Measure > 0
IfTrueAction=[!SetOption MeterBin ImageName "#@#Images\recyclebin.png"][!Redraw]
IfFalseAction=[!SetOption MeterBin ImageName "#@#Images\recyclebinfull.png"][!Redraw]

[MeterBin]
Meter=Image
ImageName=#@#Images\recyclebin.png
W=90
H=90
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeterBin OpenBin]
RightMouseUpAction=[!CommandMeasure MeterBin EmptyBin]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Recycle bin

Post by jsmorley »

What do you mean when you say it doesn't work?
Ace_323
Posts: 19
Joined: February 7th, 2018, 12:14 am

Re: Recycle bin

Post by Ace_323 »

nothing happens when i click on it
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Recycle bin

Post by jsmorley »

The trouble that I see is that you are telling it to use the "empty" image when it is full and the "full" image when it is empty.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Recycle bin

Post by jsmorley »

Ace_323 wrote:nothing happens when i click on it
Well you are sending the !CommandMeasure to the measure "MeterBin", which is the name of the meter, not the measure you are looking to control.

You need to send the !CommandMeasure to the measure "Measure".

P.S. Up to you, but I'm never fond of the Major Major style of naming. I wouldn't name a measure "Measure" and I wouldn't name a meter "Meter"...
Ace_323
Posts: 19
Joined: February 7th, 2018, 12:14 am

Re: Recycle bin

Post by Ace_323 »

-null-
Last edited by Ace_323 on February 9th, 2018, 10:51 pm, edited 1 time in total.
Ace_323
Posts: 19
Joined: February 7th, 2018, 12:14 am

Re: Recycle bin

Post by Ace_323 »

it works now thank you
Ace_323
Posts: 19
Joined: February 7th, 2018, 12:14 am

Re: Recycle bin

Post by Ace_323 »

this is the first skin ive ever "made" so i dont know all the ins and outs but im learning
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Recycle bin

Post by jsmorley »

Ace_323 wrote:ok thats fixed but it still doesn't do anything when i click on it

Code: Select all

[Rainmeter]
Update=1000

[MeasureBin]
Measure=RecycleManager
RecycleType=Count
Drives=all
DynamicVariables=1
IfCondition=MeasureBin = 0
IfTrueAction=[!SetOption MeterBin ImageName "#@#Images\recyclebin.png"][!UpdateMeter MeterBin][!Redraw]
IfFalseAction=[!SetOption MeterBin ImageName "#@#Images\recyclebinfull.png"][!UpdateMeter MeterBin][!Redraw]

[MeterBin]
Meter=Image
ImageName=#@#Images\recyclebin.png
W=90
H=90
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureBin "OpenBin"]
RightMouseUpAction=[!CommandMeasure MeasureBin "EmptyBin"]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Recycle bin

Post by jsmorley »

Ace_323 wrote:this is the first skin ive ever "made" so i dont know all the ins and outs but im learning
Not to worry, we are glad to help. You will be an expert in no time.
Post Reply