Kitutz / rainmeter

Automatically exported from code.google.com/p/rainmeter
0 stars 0 forks source link

Select drive for RecycleManager plugin #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The RecycleManager works great, I've made a nice recycle config already. A
few people have noted though, that it only reads drive C:\

Could we set which drive's bin for it to check?

[MeasureBin1]
Measure=Plugin
Plugin=RecycleManager.dll
Drive=D
RecycleType=COUNT
Update=1000
UpdateDivider=10

Original issue reported on code.google.com by JMHarris...@gmail.com on 22 Apr 2009 at 2:29

GoogleCodeExporter commented 8 years ago
Please consider making it so that we don't have to run multiple measures to 
check the
recycle bin.  Either have it check all drives automatically and treat the 
combination
as one big "recycle bin" like Windows does, or use code like this:

[MeasureBin1]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=CDEF
RecycleType=COUNT
Update=1000
UpdateDivider=10

Original comment by jsmor...@gmail.com on 24 Apr 2009 at 1:27

GoogleCodeExporter commented 8 years ago
i'v got a totally untested, uncompiled code update that might do the trick, but 
I
need someone with the time to debug and do the finishing touches (like last 
time)...

------------

Usage:

[MeasureBin1]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=C:                     (for total system bin, use Drives=ALL  ::  for 
multiple
drives use | as a delimiter e.g. Drives=A:|C:|D: will give the sum of these 
drives)
RecycleType=COUNT             (type can be COUNT for nomber of items or SIZE, 
for
size in bytes)
Update=1000
UpdateDivider=10

Original comment by gscho...@gmail.com on 26 Apr 2009 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
I can't help with debugging or compiling, but when you guys get a version you 
want
tested I would be glad to beat the crap out of it and report back.

Original comment by jsmor...@gmail.com on 28 Apr 2009 at 5:31

GoogleCodeExporter commented 8 years ago
Hey gschoppe I tried compiling the dll, first renaming of the .cpp to 
RecycleManager
to match the existing one. Here is the debug from MVSC++
https://sites.google.com/site/rainmeterdebugfiles/Home/recyclemanager_dll/04-29-
09

Original comment by JMHarris...@gmail.com on 29 Apr 2009 at 4:57

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
yeah, its got issues... did you update globals in the .h?

Original comment by gscho...@gmail.com on 29 Apr 2009 at 7:17

GoogleCodeExporter commented 8 years ago
No, not yet. I'll try and get to it tonight.

Original comment by JMHarris...@gmail.com on 29 Apr 2009 at 7:24

GoogleCodeExporter commented 8 years ago
Not to nitpick, but a drive is always one letter, so a delimiter isn't needed, 
and
what purpose does the ":" serve?

I propose 

Drives=CDEF

Original comment by jsmor...@gmail.com on 2 May 2009 at 2:56

GoogleCodeExporter commented 8 years ago
actually, there are valid reasons for both the delimiter and the colon.

the code to check bin size takes a path to any folder that contains a recycle 
bin,
without the trailing slash.. therefore, if I wanted to check the bin size on 
another
machine, I could use \\computerName\driveShareName to pull its recycle data... 
also,
there are ways to implement a folder (as opposed to drive) specific recycler for
certain high volume folders that you want to seperate (like a photoshop scratch
folder) therefore its not necessarily a one letter bin designation... to keep 
the
code simple, it asks for bin paths, minus the trailing slash, rather than drive 
letters.

given, its a design choice, and likely no one will use the plugin in such a way 
as to
necessitate it, but this is an open source project, so I decided to overbuild, 
and
let other people simplify later.

Original comment by gscho...@gmail.com on 3 May 2009 at 12:04

GoogleCodeExporter commented 8 years ago
Makes sense. Now that you point it out, you could use this to build a "super 
recycle
bin" skins that not only emptied the recycle bin, but your Windows "temp" 
folder,
browser cache, etc.  Rainmeter_CCleaner!

;-)

Original comment by jsmor...@gmail.com on 3 May 2009 at 2:54

GoogleCodeExporter commented 8 years ago
-=NEW VERSION OF RECYCLE MANAGER=-

it compiles, but I haven't done any testing.

Original comment by gscho...@gmail.com on 3 May 2009 at 4:32

Attachments:

GoogleCodeExporter commented 8 years ago
Edit:

I've tested on my box... seems ok to me...

BTW: is it possible to join the project team?

Original comment by gscho...@gmail.com on 3 May 2009 at 5:54

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/support/wiki/HowToJoinAProject

He has my vote. I think he will be an asset to the team.

Tested new RecycleManager, works fine here. I'm using nircmd for emptying bins, 
until
a native solution is found. 

Original comment by JMHarris...@gmail.com on 3 May 2009 at 8:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
-=NEW VERSION OF RECYCLE MANAGER=-

Compiled and tested, supports reading size, number of files, and emptying the 
recycle
bin... no more third party programs necessary.

----

USAGE:

[MeasureBin]
Measure=Plugin
Plugin=Plugins\RecycleManager.dll
Drives=ALL
RecycleType=COUNT

[MeterUsed]
Meter=BAR
MeasureName=MeasureBin2
BarImage=Full.png
Hidden=0
x=20
y=25
LeftMouseDownAction=!execute [!RainmeterPluginBang "MeasureBinBang OpenBin"]
RightMouseDownAction=!execute [!RainmeterPluginBang "MeasureBinBang EmptyBin"]
;RightMouseDownAction=!execute [!RainmeterPluginBang "MeasureBinBang 
EmptyBinSilent"]

----

a test build is available at
http://gschoppe.deviantart.com/art/RecycleManager-dll-Beta2-121260091

----

I will update again when an "on drop" action is available, to support recycling 
items
by drag and drop

Original comment by gscho...@gmail.com on 3 May 2009 at 6:20

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I renamed the .dll file to RecycleManager.dll and put it in C:\Program
Files\Rainmeter\Plugins

No matter how I call it

Plugin=RecycleManager.dll
Plugin=Plugins\RecycleManager.dll
Plugin="C:\Program Files\Rainmeter\Plugins\RecycleManager.dll"

It pops up an error msgbox with "Rainmeter Plugin RecycleManager.dll not found!"

If I put back the old RecycleManager.dll and call it, it works fine.

Something is amiss... or I am overlooking something.

I am running Windows 7 RC1
UAC is off
Rainmeter in C:\Program Files\Rainmeter
Plugins in C:\Program Files\Rainmeter\Plugins
Skin in C:\Program Files\Rainmeter\Skins\Dark_Rainmeter\JMDock

Original comment by jsmor...@gmail.com on 4 May 2009 at 1:47

GoogleCodeExporter commented 8 years ago
Since the file is most certainly there, and if I put back the old one it works 
fine,
I am assuming the error message is really telling me it can't initialize the 
plugin,
not that it actually can't find it.

Original comment by jsmor...@gmail.com on 4 May 2009 at 1:55

GoogleCodeExporter commented 8 years ago
I will look into it when I get home... it may be a DA issue, try redownloading, 
in
case of corruption... also close rainmeter before putting the plugin in the 
rainmeter
directory...

Original comment by gscho...@gmail.com on 4 May 2009 at 2:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Could be a DA issue.  You might try zipping it before you send it.  Sometime a 
file
transfer will add a byte or two to round out a packet or stick an EOF on the 
end of
the file and a .zip will ignore such.

Original comment by jsmor...@gmail.com on 4 May 2009 at 2:15

GoogleCodeExporter commented 8 years ago
I did redownload it, quit Rainmeter, put it in, restarted Rainmeter and no 
joy...

Original comment by jsmor...@gmail.com on 4 May 2009 at 2:19

GoogleCodeExporter commented 8 years ago
I reuploaded it, now its a zip file...
link is still: 
http://gschoppe.deviantart.com/art/RecycleManager-dll-Beta2-121260091

Original comment by gscho...@gmail.com on 4 May 2009 at 11:57

GoogleCodeExporter commented 8 years ago
Sorry.. No go. Still comes up with "not found" error message.  I see on DA that
another guy has exactly the same problem. 

Let me know if I can help / test... I'm around

Original comment by jsmor...@gmail.com on 5 May 2009 at 1:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
can you hop on IRC? there's a link from the top of rainmeter.net/forum, if you 
don't
already have a client, otherwise, irc://irc.freenode.net/rainmeter or 
#rainmeter on
freenode.net

Original comment by gscho...@gmail.com on 5 May 2009 at 1:11

GoogleCodeExporter commented 8 years ago
Sure.. Gimmie a couple of minutes to set up mirc

Original comment by jsmor...@gmail.com on 5 May 2009 at 1:24

GoogleCodeExporter commented 8 years ago
-=ISSUE RESOLVED=-

I had compiled it in debug mode... the DA link to the compiled version now 
works properly

Original comment by gscho...@gmail.com on 5 May 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Works like a champ now.  Thanks for all your hard work tonight.  Nice chatting 
with you.

Original comment by jsmor...@gmail.com on 5 May 2009 at 3:36

GoogleCodeExporter commented 8 years ago
I'd love it if someone with write privileges would merge my code with the CVS
trunk... I just don't want my half baked original code to make the next beta...

the final code is attached to comment 15 of issue 45.

<better yet, I'd LOVE write privileges>

Original comment by gscho...@gmail.com on 6 May 2009 at 1:56

GoogleCodeExporter commented 8 years ago

Original comment by kenz0.sa...@gmail.com on 25 Jun 2009 at 4:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This issue was finished. so will you report on the new issue separately as a 
"defect" ?

Original comment by kenz0.sa...@gmail.com on 27 Jun 2009 at 10:25