Könnte mir es bitte jemand einbauen, dass ausgelesen wird, welches Item aus der Listbox ausgewählt wurde und der Itemname dann in eine Txt Datei gespeichert wird? Ist meine allerletzte Frage. Danach seit ihr mich für immer los. Etwas dazulernen nützt mir ja eh nichts mehr, da ich danach nicht mehr viel mit Autoit machen werde.
[autoit]#RequireAdmin
#include <FTPEx.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Test", 351, 114, 192, 124)
$Input1 = GUICtrlCreateInput("", 16, 16, 185, 21)
$Input2 = GUICtrlCreateInput("", 16, 48, 185, 21)
$Input3 = GUICtrlCreateInput("", 16, 80, 185, 21)
$weiter = GUICtrlCreateButton("weiter", 224, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $weiter
$FTP_open = _FTP_Open("myftp")
$FTP_Connect = _FTP_Connect($FTP_open,(GUICtrlRead($Input1),(GUICtrlRead($Input2),(GUICtrlRead($Input3))
GUISetState(@SW_HIDE)
$Form1 = GUICreate("", 536, 342, 192, 124)
$Edit1 = GUICtrlCreateList("", 16, 8, 225, 240)
GUICtrlSetData(-1, "")
$Button1 = GUICtrlCreateButton("...", 464, 8, 43, 25, $WS_GROUP)
$Input1 = GUICtrlCreateInput("", 328, 8, 121, 21)
$hochladen = GUICtrlCreateButton("hochladen", 392, 88, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $hochladen
$aFile = _FTP_ListToArray($FTP_Connect, 2)
dim $string
for $i=1 to ubound($aFile)-1
$string &= $aFile[$i] & "|"
next
GUICtrlSetData($Edit1,$string)
$Ftpclose = _FTP_Close($FTP_open)
EndSwitch
WEnd
EndSwitch
WEnd