MadeInHolland Posted April 13, 2016 Share Posted April 13, 2016 Just started with AutoIT (and programming, really) 3 days ago, so bear with me I'm using _FTP_ProgressDownload to update a progressbar on a GUI, but the download is SOO MUCH slower than using _FTP_FileGet (10x? at least). _FTP_ProgressDownload ($iConn, $tempDownloadDir & $Filename, $Filename, UpdateGUIProgressBar) Func UpdateGUIProgressBar($iPercent) GUICtrlSetData($FTP_GUI_Status, $iPercent) Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit -1 ; _FTP_DownloadProgress Aborts with -1, so you can exit your app afterwards Case $btn_FTP_GUI_Exit Exit -2 ; Just Cancel, without special Return value EndSwitch Return 1 ; Otherwise continue Download EndFunc vs If _FTP_FileGet ($iConn, $Filename, $tempDownloadDir & $Filename) ... but that does not give me a progress bar or the ability to cancel the download. Any thoughts or pointers to snippets? Link to comment Share on other sites More sharing options...
AutoBert Posted April 13, 2016 Share Posted April 13, 2016 Yes, the file is splitted. So more DLL-Calls are needed. 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