It is currently April 18th, 2024, 11:28 pm

Rainmeter is terminated by !bang in RecybleManager

Get help with creating, editing & fixing problems with skins
User avatar
Valentine
Posts: 70
Joined: June 30th, 2011, 11:01 am
Location: Daegu, South Korea

Rainmeter is terminated by !bang in RecybleManager

Post by Valentine »

Hi, I using this skin (https://forum.rainmeter.net/viewtopic.php?p=150578#p150578) and i have some problem a few day ago.

OpenBin and EmptyBinSilent is not problem. They are working.
but using EmptyBin, rainmeter is termination with out any massage.
What's problem? :-( :-( :-( :-(

my rainmeter version is 4.2.0 r3111 64bit.
window is 10 64bit.
User avatar
LGP123
Posts: 60
Joined: November 5th, 2016, 12:15 pm

Re: Rainmeter is terminated by !bang in RecybleManager

Post by LGP123 »

Valentine wrote:but using EmptyBin, rainmeter is termination with out any massage.
Well, when you call for a Empty Bin With the recycle manager, Rainmeter does indeed freeze until all the files are deleted.
Or maybe I didn't understand your question.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rainmeter is terminated by !bang in RecybleManager

Post by balala »

LGP123 wrote:Well, when you call for a Empty Bin With the recycle manager, Rainmeter does indeed freeze until all the files are deleted.
And this probably can last up to more minutes, if there are a lot of files. So, probably Valentine have to wait.
User avatar
Valentine
Posts: 70
Joined: June 30th, 2011, 11:01 am
Location: Daegu, South Korea

Re: Rainmeter is terminated by !bang in RecybleManager

Post by Valentine »

LGP123 wrote:Well, when you call for a Empty Bin With the recycle manager, Rainmeter does indeed freeze until all the files are deleted.
Or maybe I didn't understand your question.
My question is when i use EmptyBin, Rainmeter is terminate. The program just ended. so, i restart rainmeter.exe.
But I solved problem!!!

It's because of !Redraw. I modified the new code by referring to the old code i had.

Code: Select all

[MeasureBin]
Measure=RecycleManager
Drives=ALL
RecycleType=COUNT

[MeterBinEmpty]
Meter=IMAGE
ImageName=#@#Image\#IIm5_1#
X=125
Y=3
W=40
H=40
Hidden=0
LeftMouseUpAction =[::{645FF040-5081-101B-9F08-00AA002F954E}][!HideMeter MeterBin_Name1][!Redraw]
MouseOverAction=!Execute [!RainmeterShowMeter MeterBin_Name1][!Redraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterBin_Name1][!Redraw]

[MeterBinFull]
Meter=IMAGE
ImageName=#@#Image\#IIm5_2#
X=r
Y=r
W=40
H=40
Hidden=1
LeftMouseDownAction=[!CommandMeasure "MeasureBin" "OpenBin"][!HideMeter MeterBin_Name2][!Redraw]
RightMouseUpAction=[!CommandMeasure "MeasureBin" "EmptyBin"][!HideMeter MeterBin_Name2][!Redraw]
MouseOverAction=!Execute [!RainmeterShowMeter MeterBin_Name2][!Redraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterBin_Name2][!Redraw]
Edit after see https://forum.rainmeter.net/viewtopic.php?p=144656#p144656

Code: Select all

[MeasureBin]
Measure=RecycleManager
RecycleType=COUNT
Drives=ALL
DynamicVariables=1
IfCondition= MeasureBin = 0
IfTrueAction=[!SetOption MeterBin ImageName "#@#Image\#IIm5_1#"][!UpdateMeter MeterBin][!Redraw]
IfFalseAction=[!SetOption MeterBin ImageName "#@#Image\#IIm5_2#"][!UpdateMeter MeterBin][!Redraw]

[MeterBin]
Meter=IMAGE
ImageName=#@#Image\#IIm5_1#
X=125
Y=3
W=40
H=40
Hidden=0
AntiAlias=1
DynamicVariables=1
LeftMouseDownAction=[!CommandMeasure "MeasureBin" "OpenBin"]
RightMouseUpAction=[!CommandMeasure "MeasureBin" "EmptyBin"]
MouseOverAction=[!ShowMeter MeterBin_Over1][!Redraw]
MouseLeaveAction=[!HideMeter MeterBin_Over1][!Redraw]
Rainmeter is not terminate by EmptyBin :17good