Jump to content

Recommended Posts

Hi all. I'm looking for a little direction to help me start an FTP script. I'm aware of the existing FTP scripts here and I'm pretty sure they can do most of what I'd like to do, I just need help adding cetain functions to them from there. Here's what I'd like to have a script do:

Upon execution of the script, create a window and allow the user to drag and drop files into it for ftp transfer up to a specific ftp server and directory (hard coded into script). If drag and drop is not an option, display a 'browse for file' dialog so they can choose the files to be uploaded. Pretty simple huh? ;) I'm brand new to AutoIT and would appreciate any help you can provide. Thanks!

Link to post
Share on other sites
  • Moderators

Go to search and look for the User Wouter or W0uter.... he has alot of FTP stuff.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites

on your computer press the following

Start > All Programs > Autoit v3 > Autoit Help File

when that loads then press the "search" tab

then type in "Drag and drop" and press "List Topics"

**** you can do this with any word you want

thats what i do all the time

and here is the demo FROM HELP

#include <GUIConstants.au3>

GUICreate(" My GUI input acceptfile", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES
$file = GUICtrlCreateInput ( "", 10,  5, 300, 20)
GUICtrlCreateInput ("", 10,  35, 300, 20); will not accept drag&drop files
$btn = GUICtrlCreateButton ("Ok", 40,  75, 60, 20)

GUISetState () 

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
       $msg = GUIGetMsg()
           Case $msg = $btn

MsgBox (4096, "drag drop file", GUICtrlRead($file))

so.... drap and drop is possible


Edited by Valuater


Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...