furso Posted December 8, 2006 Posted December 8, 2006 hi, i'm trying to send a range of files that have been dragged and dropped into an guictrlcreateinput box, and are seperated by a '|', however the _FtpPutFile command seems to only want to send one, can any1 help?, heres my code #include <GuiConstants.au3> $server = Regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "IP") $username = regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "username") $pass = regread("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "pass") $driveletter = RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\xbox_comunicator\", "drive letter defult") GuiCreate("Welcome to Sam's xbox comunicator", 803, 232, -1, -1, -1, $WS_EX_ACCEPTFILES) $Group_1 = GuiCtrlCreateGroup("Music", 10, 50, 180, 170) $Group_2 = GuiCtrlCreateGroup("Pictures", 210, 50, 180, 170) $Group_3 = GuiCtrlCreateGroup("Video", 410, 50, 180, 170) $Group_4 = GuiCtrlCreateGroup("Other", 610, 50, 170, 170) $Label_5 = GuiCtrlCreateLabel("Drag and drop the desired items into their respective catagories and they will be sent to the xbox", 150, 30, 580, 20) $musicdrop = GUICtrlCreateInput ( "Drag files here", 40, 90 , 100 , 20 , -1) GUICtrlSetState(-1,$GUI_DROPACCEPTED) $musicsend = GUICtrlCreateButton ("Send", 63, 140, 40, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $musicsend $guiread = guictrlread($musicdrop, 1) $Conn = _FTPConnect($Open, $server, $username, $pass, 0) _FtpPutFile($com, $guiread, '/'& $driveletter &'/') $Ftpc = _FTPClose($Open) EndSelect WEnd Exit
VeeDub Posted December 8, 2006 Posted December 8, 2006 Hi Furso, From a troubleshooting perspective have you tried uploading multiple files with the earlier FTP script that you had working? I am just wondering if the issue is to do with the FTP code, or whether the GUI code is somehow responsible for the problem (I'm afraid I don't have any experience with GUI programming) so if it ends up being a GUI issue you will need someone else to help you. VW
furso Posted December 8, 2006 Author Posted December 8, 2006 hi again, i don't think uploading multiple files is a problem, its just how the data from the input box is read, as it reads files and separates them with a '|', (eg, C:\file1|C:\file2|ect..), so if there was a way to make the script recognize the | symbol, as the end of one file, and the beggining of another. Thanx for your help earlier VeeDub
Rick Posted December 8, 2006 Posted December 8, 2006 (edited) StringSplit, see help Edited December 8, 2006 by Rick Who needs puzzles when we have AutoIt!!
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