Jump to content

Automated FTP Submission Utility


nitro322
 Share

Recommended Posts

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

Link to comment
Share on other sites

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. :-)

Link to comment
Share on other sites

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...