topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 4:18 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: IDEA: DropFolder  (Read 41642 times)

apfel

  • Participant
  • Joined in 2006
  • *
  • Posts: 63
    • View Profile
    • Donate to Member
IDEA: DropFolder
« on: October 11, 2008, 03:32 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

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: DropFolder
« Reply #1 on: October 13, 2008, 03:32 AM »
 :) 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

;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

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #2 on: October 13, 2008, 04:08 AM »
what a brilliant idea.  :up:

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #3 on: October 13, 2008, 04:18 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:

Drop_Folder_Tab.jpgIDEA: DropFolder1
Drag_Files_To_Logo.jpgIDEA: DropFolder2
Move_To.jpgIDEA: DropFolder3
Copy_To.jpgIDEA: DropFolder4
CDL_Word_Coca_Cola.jpgIDEA: DropFolder5
Coke_Open.jpgIDEA: DropFolder6

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.

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
« Last Edit: October 13, 2008, 04:42 AM by VideoInPicture »

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #4 on: October 13, 2008, 06:43 AM »
I get an unhandled exception error when loading?
« Last Edit: October 13, 2008, 06:51 AM by CleverCat »

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #5 on: October 13, 2008, 06:55 AM »
BTW I have net framework 2 & 3 with all the latest service packs. :Thmbsup:

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #6 on: October 13, 2008, 06:56 AM »
That is weird. Are you on XP or Vista?
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
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #7 on: October 13, 2008, 06:58 AM »
I just tested on XP & Vista. Seems for some reason it runs on Vista but not XP. I'll try debugging it.
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
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #8 on: October 13, 2008, 07:05 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:

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #9 on: October 13, 2008, 07:07 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.
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
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #10 on: October 13, 2008, 07:14 AM »
Keeps disappearing after I close settings!  :o

Update - stays when I bring it back and leave settings..  ;D What fun.... :)

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #11 on: October 13, 2008, 07:15 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.
-VideoInPicture (October 13, 2008, 07:07 AM)

No problem - gotta move those apps anyway!

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #12 on: October 13, 2008, 07:32 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.
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
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #13 on: October 13, 2008, 07:35 AM »
Ah thanks....  :D

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

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #14 on: October 13, 2008, 08:05 AM »
Alright, I've reuploaded Custom Desktop Logo V2.0 to the website: http://customdesktop...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.
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
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #15 on: October 13, 2008, 08:19 AM »
Works fine from my external drive! :Thmbsup: :D


VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #16 on: October 13, 2008, 08:29 AM »
Glad it works now.  :)

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.
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
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #17 on: October 13, 2008, 08:45 AM »
I haven't changed it after reinstalling the new one!  :D

Will 'play' tomorrow...... ;)

Can u get it to make toast?

apfel

  • Participant
  • Joined in 2006
  • *
  • Posts: 63
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #18 on: October 14, 2008, 10:21 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 PM by apfel »

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: IDEA: DropFolder
« Reply #19 on: October 14, 2008, 05:16 PM »
Try downloading Custom Desktop Logo 2.1 to see if that fixes the crashing issue: http://customdesktop...wikidot.com/download

Hide the settings window by minimizing it.
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
  • Joined in 2006
  • *
  • Posts: 63
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #20 on: October 15, 2008, 09:26 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 AM by apfel »

wetsmellydog

  • Participant
  • Joined in 2007
  • *
  • Posts: 120
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #21 on: October 15, 2008, 10:13 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.

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #22 on: October 16, 2008, 01:33 AM »
Tera Copy is good and fast for big jobs.... :Thmbsup:

apfel

  • Participant
  • Joined in 2006
  • *
  • Posts: 63
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #23 on: October 16, 2008, 10:39 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.

wetsmellydog

  • Participant
  • Joined in 2007
  • *
  • Posts: 120
    • View Profile
    • Donate to Member
Re: IDEA: DropFolder
« Reply #24 on: October 16, 2008, 06:55 PM »
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.