Hallo, habe ein script was nicht geht,
Hilft mir mal bitte
Spoiler anzeigen
#include <FTPEx.au3>
#include <Debug.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
GUICreate("Dings", 220, 250, 100, 200, -1)
GUISetState(@SW_SHOW)
$progressbar1 = GUICtrlCreateProgress(10, 10, 200, 20)
Local $server = '###'
Local $username = '###'
Local $pass = '###t'
Local $Open = _FTP_Open('MyFTP Control')
Local $Conn = _FTP_Connect($Open, $server, $username, $pass, 0, $INTERNET_DEFAULT_FTP_PORT, $INTERNET_SERVICE_FTP, 0)
_FTP_ProgressDownload($Conn, "splash.jpg", "/www/splash.jpg", "_UpdateProgress")
Local $Ftpc = _FTP_Close($Open)
Func _UpdateProgress($percent)
GUICtrlSetData($progressbar1, $percent)
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Return -1 ; _FTP_DownloadProgress Aborts with -1, so you can exit you app afterwards
EndSwitch
Return 1 ; Otherwise contine Download
EndFunc ;==>_UpdateProgress