Search

Main Menu

Login
Username:

Password:

Remember me?
Anonymous

Lost Password?

Register now!

Samurize Forums -> Interacting Recycle bin


Forum Rules ATTENTION: This forum is closed

Post over at the samurize.us forums instead.

  Reply to this topicStart new topic

> Interacting Recycle bin
lyllo
Posted: Sep 24 2007, 01:07 PM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



Hi guys.
i'm trying to re-crete an interactive recycle bin.
with the plugin i just could obtain bin capacity and number of object.
now i'd like to have an icon able to changes its image when is empty or full.

how can i proceed?

tnx
PM
Top
uziq
Posted: Sep 24 2007, 01:22 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 3,086
Offline



The RecycleBin plugin comes with an example config and can change the image. It's in the PluginPak.


--------------------
New Samurize site: www.samurize.us
PMEmail Poster
Top
lyllo
Posted: Sep 25 2007, 03:40 AM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



QUOTE (uziq @ Sep 24 2007, 01:22 PM)
The RecycleBin plugin comes with an example config and can change the image. It's in the PluginPak.

thank you.
observing the .ini it seemes i have to set some alert functions isn't it ^^

i'll work on it, thank you.
PM
Top
lyllo
Posted: Sep 25 2007, 04:45 AM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



hi again.
i'm trying to use the plugin.
by now i could play the sound and edit some interactions like confirmations.
anyway i cannot have icon changing properly from empty to full.

using FULL alert like the one setted up in the example doesn't make icon change: it remains always in empty mode.

tryed to change the condition from "greater than" to some other one, but nothing changes.
icon remains always the same.

can u help me pls?

thank you,
PM
Top
AdamC
Posted: Sep 25 2007, 11:28 AM
Quote Post
The Programming Frog
*****



Group: Admin
Joined: Sep 26 2003
Posts: 3,270
Offline



You will probably need an alert that says some like if the value is greater than 0 then change to the full icon and setup the default icon as the empty one. I've not used the plugin recently so cannot remember what it can return.
PMICQAOLYahooMSN
Top
lyllo
Posted: Sep 25 2007, 12:12 PM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



QUOTE (AdamC @ Sep 25 2007, 05:28 PM)
You will probably need an alert that says some like if the value is greater than 0 then change to the full icon and setup the default icon as the empty one. I've not used the plugin recently so cannot remember what it can return.

i've done exactly what u said that's why i'm now asking here smil3dbd4d6422f04.gif
i've setted (?) up the alert value to do a check if the byn was empty or not, but nothing changes.
icons remains the empy one or the full one depending on the option i use.

gretaer than 0 -> always full
changed more -> always empty.
PM
Top
AdamC
Posted: Sep 25 2007, 01:30 PM
Quote Post
The Programming Frog
*****



Group: Admin
Joined: Sep 26 2003
Posts: 3,270
Offline



Could you post your config so that we could have a look at it.
PMICQAOLYahooMSN
Top
lyllo
Posted: Sep 25 2007, 01:54 PM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



here it is smil3dbd4d6422f04.gif

gestore cestino = recycle bin controls
cestino = recycle bin
pieno = full (to indicate the full state)
svuotamento = emptying procedure

thank you

CODE

[Meter 12]
Name=gestore cestino
Group=
Locking=0

[Source 12]
Type=TActiveDLLCollector
DLLName=RecycleBin.dll
DLLFunction=GetRecycleBinInfo
RecycleBin_InfoStr="%c oggetti %b %s"

[Output 12]
Type=TTextOutput
Text=%v
Color=FFFFFFFF
Align=0
AlignVertical=0
FontName=BitDust Two
FontSize=12
FontStyle=[]
FontCharset=0
LineSpacing=1
NrOfDecimals=0
TabSize=20
TruncateText=0
AlwaysTruncateRight=0
WordWrap=0
Antialiased=1
ForceAntialiased=0
UseSeperators=0
Scroll=0
ScrollInterval=1000
ScrollPause=0
ScrollPauseInterval=1000
ScrollSeperator=%sp|%sp
ScrollDirection=0
ScrollType=0
ScrollVerticalOffset=1
MinDigitsBeforeDP=0
TextShadow=0
TextShadowXOffset=1
TextShadowYOffset=1
TextShadowColor=FF000000
Left=230
Top=320
Right=330
Bottom=360
UpdateInterval=0
AllowAlertValue=0
AllowMaths=0
AddBackground=0
Background=00000000
AddBorder=0
BorderColor=FF000000
BorderWidth=1
Grid=0
GridColor=FF000000
GridX=10
GridY=10
ShadowXOffset=0
ShadowYOffset=0
ShadowColor=00000000
DoShadow=0

[InputController 12]
AllowInput=0

[Meter 13]
Name=cestino
Group=
Locking=0

[Source 13]
Type=TActiveDLLCollector
DLLName=RecycleBin.dll
DLLFunction=GetRecycleBinInfo
RecycleBin_InfoStr="%c items = %s"

[Output 13]
Type=TImageMeterOutput
DefaultName=C:\Documents and Settings\Matteo Maria Ambrogi\Documenti\Immagini\Icone\Esiko\empty.png
Default=1
MaintainAspectRatio=0
MasterAlpha=255
AlertImageFile=C:\Documents and Settings\Matteo Maria Ambrogi\Documenti\Immagini\Icone\Esiko\full.png
AlertImageAlpha=255
Path=%v
LoopNTimes=0
ShowFirstFrameAsLast=0
NumLoops=0
Crop=0
ForceWebUpdate=0
UpdateWebInterval=5
Left=188
Top=226
Right=276
Bottom=318
UpdateInterval=0
AllowAlertValue=1
NumberOfAlertValues=2
AllowMaths=0
AddBackground=0
Background=00000000
AddBorder=0
BorderColor=FF000000
BorderWidth=1
Grid=0
GridColor=FF000000
GridX=10
GridY=10
ShadowXOffset=0
ShadowYOffset=0
ShadowColor=00000000
DoShadow=0

[Output 13 Alert 0]
AlertName=Pieno
AlertValue=0
AlertColor=FF0000FF
AlertColor2=FFFF0000
AlertText=
AlertWhen=0
SoundAlertOccurence=0
CommandAlertOccurence=0
AlertImage=C:\Documents and Settings\Matteo Maria Ambrogi\Documenti\Immagini\Icone\Esiko\full.png
AlertImageAlpha=255
StripValue=0

[Output 13 Alert 1]
AlertName=Svuotamento
AlertValue=0
AlertColor=FF0000FF
AlertColor2=FFFF0000
AlertText=
AlertWhen=8
SoundAlertOccurence=0
CommandAlertOccurence=0
AlertImage=
AlertImageAlpha=255
PlaySound=1
SoundFile=C:\WINDOWS\Media\recycle.wav
StripValue=0

[InputController 13]
AllowInput=1

[InputController 13 Input 0]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5002
RecycleBin_InputAction=3
RecycleBin_EmptyConfirm=1
RecycleBin_IsEmpty="Il Cestino è vuoto"
RecycleBin_HasOneItem="Il cestino ha %c oggetto (%s)"
RecycleBin_HasManyItems="Il cestino ha %c oggetti (%s)"
RecycleBin_Open="Apri"
RecycleBin_Empty="Svuota"

[InputController 13 Input 1]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5001
RecycleBin_InputAction=1
RecycleBin_IsEmpty="Recycle Bin is empty"
RecycleBin_HasOneItem="Recycle Bin has %c item (%s)"
RecycleBin_HasManyItems="Recycle Bin has %c items (%s)"
RecycleBin_Open="Open"
RecycleBin_Empty="Empty"

[InputController 13 Input 2]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5020
RecycleBin_DropAction=1
RecycleBin_DeleteConfirm=1


This post has been edited by lyllo on Sep 25 2007, 01:56 PM
PM
Top
AdamC
Posted: Sep 26 2007, 03:44 AM
Quote Post
The Programming Frog
*****



Group: Admin
Joined: Sep 26 2003
Posts: 3,270
Offline



I've looked at this and done some edits to it and it works ok for me now:

CODE

[Meter 0]
Name=gestore cestino
Group=
Locking=0

[Source 0]
Type=TActiveDLLCollector
DLLName=RecycleBin.dll
DLLFunction=GetRecycleBinInfo
RecycleBin_InfoStr="%c oggetti %b %s"

[Output 0]
Type=TTextOutput
Text=%v
Color=FFFFFFFF
Align=0
AlignVertical=0
FontName=BitDust Two
FontSize=12
FontStyle=[]
FontCharset=0
LineSpacing=1
NrOfDecimals=0
TabSize=20
TruncateText=0
AlwaysTruncateRight=0
WordWrap=0
Antialiased=1
ForceAntialiased=0
UseSeperators=0
Scroll=0
ScrollInterval=1000
ScrollPause=0
ScrollPauseInterval=1000
ScrollSeperator=%sp|%sp
ScrollDirection=0
ScrollType=0
ScrollVerticalOffset=1
MinDigitsBeforeDP=0
TextShadow=0
TextShadowXOffset=1
TextShadowYOffset=1
TextShadowColor=FF000000
Left=230
Top=320
Right=330
Bottom=360
UpdateInterval=0
AllowAlertValue=0
AllowMaths=0
AddBackground=0
Background=00000000
AddBorder=0
BorderColor=FF000000
BorderWidth=1
Grid=0
GridColor=FF000000
GridX=10
GridY=10
ShadowXOffset=0
ShadowYOffset=0
ShadowColor=00000000
DoShadow=0

[InputController 0]
AllowInput=0

[Meter 1]
Name=cestino
Group=
Locking=0

[Source 1]
Type=TActiveDLLCollector
DLLName=RecycleBin.dll
DLLFunction=GetRecycleBinInfo
RecycleBin_InfoStr="%c items = %s"

[Output 1]
Type=TImageMeterOutput
DefaultName=Skins\KeyStatus\green.gif
Default=1
MaintainAspectRatio=0
MasterAlpha=255
AlertImageFile=Skins\KeyStatus\red.gif
AlertImageAlpha=255
Path=%v
LoopNTimes=0
ShowFirstFrameAsLast=0
NumLoops=0
Crop=0
ForceWebUpdate=0
UpdateWebInterval=5
Left=188
Top=226
Right=276
Bottom=318
UpdateInterval=0
AllowAlertValue=1
NumberOfAlertValues=1
AllowMaths=0
AddBackground=0
Background=00000000
AddBorder=0
BorderColor=FF000000
BorderWidth=1
Grid=0
GridColor=FF000000
GridX=10
GridY=10
ShadowXOffset=0
ShadowYOffset=0
ShadowColor=00000000
DoShadow=0

[Output 1 Alert 0]
AlertName=Pieno
AlertValue=MB
AlertColor=FF0000FF
AlertColor2=FFFF0000
AlertText=
AlertWhen=3
SoundAlertOccurence=0
CommandAlertOccurence=0
AlertImage=C:\Program Files\Samurize\Skins\KeyStatus\red.gif
AlertImageAlpha=255
StripValue=0

[InputController 1]
AllowInput=1

[InputController 1 Input 0]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5002
RecycleBin_InputAction=3
RecycleBin_EmptyConfirm=1
RecycleBin_IsEmpty="Il Cestino è vuoto"
RecycleBin_HasOneItem="Il cestino ha %c oggetto (%s)"
RecycleBin_HasManyItems="Il cestino ha %c oggetti (%s)"
RecycleBin_Open="Apri"
RecycleBin_Empty="Svuota"

[InputController 1 Input 1]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5001
RecycleBin_InputAction=1
RecycleBin_IsEmpty="Recycle Bin is empty"
RecycleBin_HasOneItem="Recycle Bin has %c item (%s)"
RecycleBin_HasManyItems="Recycle Bin has %c items (%s)"
RecycleBin_Open="Open"
RecycleBin_Empty="Empty"

[InputController 1 Input 2]
Type=TPluginInput
DLLName=RecycleBin.dll
State=1
Action=5020
RecycleBin_DropAction=1
RecycleBin_DeleteConfirm=1


Its not the best in the world because its looking for MB in the return string. The reason that yours did not work is the returning result does not look like a number to samurize because it has = and MB in it.
PMICQAOLYahooMSN
Top
lyllo
Posted: Sep 26 2007, 04:07 AM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



thank you for the help.
i'll check for the lines to change.

bb ^^

This post has been edited by lyllo on Sep 26 2007, 04:07 AM
PM
Top
lyllo
Posted: Sep 26 2007, 05:55 AM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



now it works!

thank you,
PM
Top
AdamC
Posted: Sep 26 2007, 11:07 AM
Quote Post
The Programming Frog
*****



Group: Admin
Joined: Sep 26 2003
Posts: 3,270
Offline



Brilliant smil3dbd4d4e4c4f2.gif
PMICQAOLYahooMSN
Top
lyllo
Posted: Sep 27 2007, 11:54 AM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



this 3d should be highlighted in order to help other user with right configurations.

bb.
PM
Top
lyllo
Posted: Sep 27 2007, 01:23 PM
Quote Post
Shadow
*



Group: Member
Joined: Sep 23 2007
Posts: 15
Offline



NOTE: the correct alert setting to have the icon change to FULL state is

CODE

IS MAJOR THAN: 0,1 KB


using other values won't make icon change.

PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 

Come On, Get Samurized!