Welcome Guest.   Make a donation to an author on the site October 22, 2014, 04:49:34 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: DropFolder  (Read 16192 times)
apfel
Participant
*
Posts: 63


View Profile Give some DonationCredits to this forum member
« on: October 11, 2008, 03:32:13 PM »

Had a nice Idea, while cleaning my Desktop from old files/Downloads etc.

A floating Icon for droping Files/Folders, which opens a menu with configured Move/Copy(while holding Ctrl+drop) Paths.
- with Window Levels: Normal, OnTop, Desktop
- lock/unlock position of icon
- png skin support/Transparency Slider/Icon Size Slider

Would make move/copy actions much more easier.

apfel
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: October 13, 2008, 03:32:21 AM »

 smiley Here's an early draft.

DropFolder - Drop files on a floating icon to move or copy files to user defined folders.

Press Ctrl while dropping to copy files

Skrommel

[copy or print]
;DropFolder.ahk
; Drop files on a floating icon to move or copy files to user defined folders
; Press Ctrl while dropping to copy files
;Skrommel

#NoEnv
#SingleInstance,Force
SetWindelay,0

paths=C:\Archive\Work,C:\Archive\Games,C:\Archive\Photos
picture=C:\Windows\Web\Wallpaper\Wind.jpg
transparency=150
x=100
y=100
w=32
h=
location=AlwaysOnTop

Gosub,MENU
OnMessage(0x112,"WM_SYSCOMMAND")
If location=AlwaysOnTop
  guioptions:="+" location
If w<>
  pictureoptions:="H-1 W" w
Else
  pictureoptions:="W-1 H" h
Gui,Margin,0,0
Gui,% "-Caption +ToolWindow +LastFound -Resize " guioptions
guiid:=WinExist()
Gui,Add,Picture,% pictureoptions " GMOVEWINDOW",% picture
Gui,Show,% "X" x " Y" y
WinSet,Transparent,% transparency
Return


GuiDropFiles:
GetKeyState,ctrl,Control,P
where:=A_GuiControl
filecount:=A_EventInfo
guix:=A_GuiX
guiy:=A_GuiY
files:=A_GuiEvent
Menu,menu,Show
Return


MENU:
Loop,Parse,paths,`,
  Menu,menu,Add,% A_LoopField,COPY
Menu,menu,Add
Menu,menu,Add,&Browse...,BROWSE
Menu,menu,Add,&Cancel,CANCEL
Return


COPY:
FileCreateDir,%A_ThisMenuItem%
If ctrl=D
  Loop,Parse,files,`n
    FileCopy,%A_LoopField%,%A_ThisMenuItem%
Else
  Loop,Parse,files,`n
    FileMove,%A_LoopField%,%A_ThisMenuItem%
Return


BROWSE:
FileSelectFolder,target,,3
If target=
  Return
FileCreateDir,%target%
If ctrl=D
  Loop,Parse,files,`n
    FileCopy,%A_LoopField%,%target%
Else
  Loop,Parse,files,`n
    FileMove,%A_LoopField%,%target%
Return


CANCEL:
Return


;Stolen from SKAN at http://www.autohotkey.com/forum/topic32768.html
MOVEWINDOW:
  PostMessage,0xA1,2,,,A   ;WM_NCLBUTTONDOWN=0x00A1 HTCAPTION=2
Return


;Stolen from Lexicos at http://www.autohotkey.com/forum/topic18260.html
WM_SYSCOMMAND(wParam)
{
  Global guiid
  If (A_Gui && wParam = 0xF020) ; SC_MINIMIZE
    WinRestore,ahk_id %guiid%
}


GuiClose:
  ExitApp
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: October 13, 2008, 04:08:55 AM »

what a brilliant idea.  thumbs up
Logged
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: October 13, 2008, 04:18:54 AM »

http://customdesktoplogo.wikidot.com/

This seems like it could be an extension of Custom Desktop Logo so I added in drop folder capability into Custom Desktop Logo V2.0. Screenshots below:

1
2
3
4
5
6

With the drop folder option enabled in the tray icon or the settings panel, you can move the logos around as well as still have them animated or static. Custom Desktop Logo uses PNG images so it does alpha blending on the graphics to make them look smooth when displayed on the desktop. Multi-monitor support should also work.

Hold down CTRL while drag and dropping to copy instead of moving. Change the paths of the target folders in the "Drop Folder" tab of the settings panel. You can specify an alternate name for the folders or leave the name field blank to tell Custom Desktop Logo to display the folder path. Click on the logo itself to get a list of your target folders that you can simply open. All the file copying and moving operations are done in a multi-threaded fashion so you can perform multiple copy/move operations at the same time.

There are a couple of limitations with the drop folder capability right now. (1) I hard coded the program to limit it to 20 drop folders in the list. (2) I would like to have a copy/move status indicator for large operations.

Download Custom Desktop Logo 2.0 at http://customdesktoplogo.wikidot.com/. Source code is included on the source code download page (written in C#). Requires .Net 2.0 Framework or later to run it.

« Last Edit: October 13, 2008, 04:42:24 AM by VideoInPicture » Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: October 13, 2008, 06:43:26 AM »

I get an unhandled exception error when loading?


* Clipboard01.jpg (49.02 KB, 406x178 - viewed 457 times.)
« Last Edit: October 13, 2008, 06:51:14 AM by CleverCat » Logged

If you need help - JUST ASK!
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: October 13, 2008, 06:55:25 AM »

BTW I have net framework 2 & 3 with all the latest service packs. Thmbsup
Logged

If you need help - JUST ASK!
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: October 13, 2008, 06:56:17 AM »

That is weird. Are you on XP or Vista?
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: October 13, 2008, 06:58:55 AM »

I just tested on XP & Vista. Seems for some reason it runs on Vista but not XP. I'll try debugging it.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: October 13, 2008, 07:05:34 AM »

Nix that - I had it on my External Drive with my non-install apps - now it's in the programme folder on C and working!  i guess it needs to be with system... Thmbsup
Logged

If you need help - JUST ASK!
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: October 13, 2008, 07:07:36 AM »

Hmm, I don't think it should matter where it's placed. I have taken down version 2.0 while I try to find out what's wrong since I know version 1.0 works fine on XP and Vista. I've recently switched over to Microsoft Visual Studio 2008 Pro from Express and I think it mucked up some of the compilation settings.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #10 on: October 13, 2008, 07:14:28 AM »

Keeps disappearing after I close settings!  ohmy

Update - stays when I bring it back and leave settings..  Grin What fun.... smiley
Logged

If you need help - JUST ASK!
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: October 13, 2008, 07:15:27 AM »

Hmm, I don't think it should matter where it's placed. I have taken down version 2.0 while I try to find out what's wrong since I know version 1.0 works fine on XP and Vista. I've recently switched over to Microsoft Visual Studio 2008 Pro from Express and I think it mucked up some of the compilation settings.

No problem - gotta move those apps anyway!
Logged

If you need help - JUST ASK!
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: October 13, 2008, 07:32:11 AM »

It is definitely something funky with Visual Studio 2008 Pro. Still figuring this one out.

As for the settings panel, click the minimize button to make it go away instead of the X button, which will close the program.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: October 13, 2008, 07:35:00 AM »

Ah thanks....  cheesy

I also modified the cat.png to have transparent surround on desktop - lost some whiskers in process  Grin Will have to work on it!  Wink
« Last Edit: October 13, 2008, 07:37:48 AM by CleverCat » Logged

If you need help - JUST ASK!
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: October 13, 2008, 08:05:35 AM »

Alright, I've reuploaded Custom Desktop Logo V2.0 to the website: http://customdesktoplogo.wikidot.com/download

I've tested it on XP & Vista and looks to be running fine now. For some reason Visual Studio Pro is compiling the program differently than with Express so I compiled this as a release edition. Tell me if there is any other problems getting it to start up.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: October 13, 2008, 08:19:30 AM »

Works fine from my external drive! Thmbsup cheesy



* Cat.png (3.87 KB, 128x128 - viewed 1234 times.)
Logged

If you need help - JUST ASK!
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #16 on: October 13, 2008, 08:29:58 AM »

Glad it works now.  smiley

I think you may have posted the wrong image of the Cat because the one you attached doesn't have a transparent background. I'm seeing white.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #17 on: October 13, 2008, 08:45:01 AM »

I haven't changed it after reinstalling the new one!  cheesy

Will 'play' tomorrow...... Wink

Can u get it to make toast?


* ATT005846.gif (14.3 KB, 117x145 - viewed 1184 times.)
Logged

If you need help - JUST ASK!
apfel
Participant
*
Posts: 63


View Profile Give some DonationCredits to this forum member
« Reply #18 on: October 14, 2008, 10:21:52 AM »

@skrommel  NICE! a spartan way to setting up, but it works.
improvements:
-small gui with Transparency Slider/Icon Size Slider,
-right-click-menu for icon to change the icon and del/add Folders and maybe recently used Folders, Window Level setting, Lock/UNlock position
-alpha blending for png files
-Ctrl+Shift+Drop a Folder to add Folder to the List
- a way to chose a Folder Path and name the menu item diffrently. exmpl. C:\privat\blah\temp, Menu Namen= Temp Folder
- save last position/change position for start

@VideoInPicture
Very good implementation of the Idea, but with .Net Framework 2.0 anyway, great work.
Looks more userfriendly to me.

Edit: worked first time, now crashing while right-click on trayicon and sometime at the start.
Edit2: How to close Configuration Window without closing the program? O_o
Edit3: Crash appears after starting the program but in a diffrent location.
)Edit4: Possible png alpha-transperancy with gdi+ [http://www.autohotkey.net/~tic/Gdip.Tutorial.3-Create.Gui.From.Image.ahk])
« Last Edit: October 14, 2008, 01:13:23 PM by apfel » Logged
VideoInPicture
Honorary Member
**
Posts: 467



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #19 on: October 14, 2008, 05:16:03 PM »

Try downloading Custom Desktop Logo 2.1 to see if that fixes the crashing issue: http://customdesktoplogo.wikidot.com/download

Hide the settings window by minimizing it.
Logged

Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com
apfel
Participant
*
Posts: 63


View Profile Give some DonationCredits to this forum member
« Reply #20 on: October 15, 2008, 09:26:59 AM »

Nope the problems are gone! thx.
suggestions:
-Lock/Unlock Position right-click-menu item
-Ctrl+Shift+Drop Folder to add FolderPath as one new Location (maybe with Folder-Name prompt)

Edit: When the file is already in the Move-Location, the program should warn you about Overwritting the file/files/folders.. etc.
« Last Edit: October 15, 2008, 10:18:27 AM by apfel » Logged
wetsmellydog
Participant
*
Posts: 98

View Profile Give some DonationCredits to this forum member
« Reply #21 on: October 15, 2008, 10:13:53 PM »

There are two programs from http://www.codesector.com/ that I use everyday that do just about everything you are talking about.

TeraCopy
Free utility designed to copy/move files faster and more secure. Can resume broken file transfers.

Direct Folders
Quick access to your favorite folders and files. Jump to any deeply nested folder in a single mouse click.

Both are available anytime, anywhere in your system when you are working on files, not just on the desktop. Great time savers.
Logged
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #22 on: October 16, 2008, 01:33:06 AM »

Tera Copy is good and fast for big jobs.... Thmbsup
Logged

If you need help - JUST ASK!
apfel
Participant
*
Posts: 63


View Profile Give some DonationCredits to this forum member
« Reply #23 on: October 16, 2008, 10:39:32 AM »

There are two programs from http://www.codesector.com/ that I use everyday that do just about everything you are talking about.

TeraCopy
Free utility designed to copy/move files faster and more secure. Can resume broken file transfers.

Direct Folders
Quick access to your favorite folders and files. Jump to any deeply nested folder in a single mouse click.

Both are available anytime, anywhere in your system when you are working on files, not just on the desktop. Great time savers.


Dropfolder by VideoInPicture/or skrommel simplify the whole process with just 2 clicks and without using 2 different program's.
Logged
wetsmellydog
Participant
*
Posts: 98

View Profile Give some DonationCredits to this forum member
« Reply #24 on: October 16, 2008, 06:55:56 PM »

Quote
Dropfolder by VideoInPicture/or skrommel simplify the whole process with just 2 clicks and without using 2 different program's.

Actually Teracopy does what the others do in 2 clicks or less also. Directfolders complements the program by allowing you to find or make a directory quickly if you are not sure where you want to put the files.
Logged
Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.049s | Server load: 0.08 ]