voyage34 Posted September 12, 2005 Share Posted September 12, 2005 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 comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 12, 2005 Moderators Share Posted September 12, 2005 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 comment Share on other sites More sharing options...
Valuater Posted September 12, 2005 Share Posted September 12, 2005 (edited) 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) GUICtrlSetState(-1,$GUI_ACCEPTFILES) 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() Select Case $msg = $btn exitloop EndSelect Wend MsgBox (4096, "drag drop file", GUICtrlRead($file)) so.... drap and drop is possible 8) Edited September 12, 2005 by Valuater Link to comment Share on other sites More sharing options...
voyage34 Posted September 12, 2005 Author Share Posted September 12, 2005 Thanks! Digging around now. 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