nitro322 Posted October 3, 2005 Share Posted October 3, 2005 I had to develop an FTP submission utility to distribute at work, and decided to use AutoIt for the job. This utility was actually part of a larger application, but I thought it came out rather well so I decided to break it out into a standalone utility and post it here. Hopefully, others can benifit from it.This script was written and compiled with AutoIt version 3.1.1-68-beta (though I'm not sure if the beta version is actually required for this component). It uses the FTP user defined functions provided by w0uter here: http://www.autoitscript.com/forum/index.php?showtopic=12473., including my Passive FTP modifications documented in post #32. It could be pretty easily modified to use the standard FTP.au3 UDFs instead, but personally I find passive FTP more reliable.Hope you find this useful. By the way, one capability I'd love to add is drag-and-drop. I just could not figure out how to enable drag-and-drop to a ListView control. If any AutoIt gurus feel like adding this capability, please post the results here. Enjoy!ftp_submit.au3 http://www.legroom.net/ Link to comment Share on other sites More sharing options...
flyingboz Posted October 3, 2005 Share Posted October 3, 2005 nitro, see this post for dragdrop script that demonstrates how to add drag/drop functionality to your au3 app. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
nitro322 Posted October 3, 2005 Author Share Posted October 3, 2005 nitro, see this post for dragdrop script that demonstrates how to add drag/drop functionality to your au3 app.Thanks for the pointer, flyingboz. I had actually looked at that script earlier, though (as well as severl others), but still couldn't get drag-and-drop to work in conjunction with the other capabilities I want in the script. For example, I want each filename individually selectable to remove them, I want to allow right-click actions on each file, etc.ListView is the only control I could make support all of those options, but it doesn't seem to support drag-and-drop. Input and Edit controls will let me drag-and-drop, but I can't make them support all of the other capabilities I included. It's a vicious cycle. :-) http://www.legroom.net/ Link to comment Share on other sites More sharing options...
flyingboz Posted October 4, 2005 Share Posted October 4, 2005 (edited) ListView is the only control I could make support all of those options, but it doesn't seem to support drag-and-drop. Input and Edit controls will let me drag-and-drop, but I can't make them support all of the other capabilities I included. It's a vicious cycle. :-)I worked around it by creating an drag/drop editbox which monitored for messages, and then populated the listbox with the add'l file(s). A little clunky, but quite operational. If you make room in your GUI for a "drag files here" window, and monitor for the message you should be fine.If you need a code snippet, I can probably drag up my old FTP automation utility, based on the first "official" GUI release that supported drag/drop. Edited October 4, 2005 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now