Und wieder mal ein Problem:
Das folgende Skript funktioniert nur im Editor, aber nicht kompiliert.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=ftp.exe
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <String.au3>
#include <FTP_Ex.au3>
$title = "Titel"
$value = 1
$file = "ftp.txt"
Global $serv = "xxx"
Global $user = "xxx"
Global $pass = "xxx"
Global $ftp = _FTPOpen("ftp")
Global $FTPServer = _FTPConnect($ftp, $serv, $user, $pass, 1)
$ftpfile = _FTPOpenFile($FTPServer, "iweimhjbei6x1ho")
$ftpfileread = _FTPReadFile($ftpfile, 256)
$ftpfileread = BinaryToString($ftpfileread)
_FTPCloseFile($ftpfile)
MsgBox(0, $title, $ftpfileread)
If $value = 1 Then
If StringInStr($ftpfileread, "4hx17ihqgupg5ld") = 0 Then
FileWrite($file, 'StringInStr($ftpfileread3, "4hx17ihqgupg5ld") = 0')
Exit
ElseIf StringInStr($ftpfileread, "4hx17ihqgupg5ld") > 0 Then
FileWrite($file, 'StringInStr($ftpfileread3, "4hx17ihqgupg5ld") > 0')
Else
FileWrite($file, "Else")
Exit
EndIf
EndIf
_FTPClose($FTPServer)
_FTPClose($ftp)
Das heißt, im Editor bekomme ich als MsgBox den ganzen Inhalt, kompiliert bekomme ich nichts.