ich möchte gerne, wenn ich eine taste drücke, die erste while-schleife wiederholen lassen. also müsste ich "continueloop2" in der 2ten while-schleife setzten, damit an der stelle die erste wiederholt wird. nur passiert das bei mir nicht.
wenn ich "exitloop" setze, funktioniert das script super, nur halt eben einmal, dann müsste es neu gestartet werde.
bin ich hier auf dem holzweg oder überseh ich hier nur etwas?
Opt("WinTitleMatchMode", 2)
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <FTPEx.au3>
#include <Array.au3>
#include <misc.au3>
Global $sPassword = "****"
Global $sUser = "username"
Global $sServer = "www.server.com"
Global $spath = @scriptdir & "\save "&@UserName&".ini"
Global $sOrdner = "/"
Global $sFilename = "save "&@UserName&".ini"
Global $Input2
While 1 ;hier her soll beim drücken der taste das script wieder springen
if WinWaitActive("alte seite") then WinClose ("alte seite")
$Form1 = GUICreate("Flatcast Login", 199, 230, 4,30,"",$WS_EX_TOPMOST)
$Edit1 = GUICtrlCreatelabel("Please login in:", 14, 5)
GUICtrlSetFont ($Edit1, 8.5,"","","thimes new roman")
$Edit2 = GUICtrlCreatelabel("User", 14, 47)
GUICtrlSetFont ($Edit2, 8.3,"","","thimes new roman")
$Input1 = GUICtrlCreateInput("", 14, 60,123,23)
$button1 = GUICtrlCreateButton("Guest", 141, 60, 45, 23,"",$WS_TABSTOP)
GUICtrlSetFont ($button1, 8.5,"","","thimes new roman")
$Edit3 = GUICtrlCreatelabel("Password", 14, 90)
GUICtrlSetFont ($Edit3, 8.3,"","","thimes new roman")
$Input2 = GUICtrlCreateInput("", 14, 108,123,23,$ES_PASSWORD)
$button2 = GUICtrlCreateButton("I am new and want to register", 14, 165, 172, 23)
GUICtrlSetFont ($button2, 8.5,"","","thimes new roman")
$button3 = GUICtrlCreateButton("?", 157, 138, 23, 23)
GUICtrlSetFont ($button3, 8,"","","thimes new roman")
$button4 = GUICtrlCreateCheckbox("", 14, 144, 14, 14)
$Edit4 = GUICtrlCreatelabel("Enable Automatic Login", 29, 144)
GUICtrlSetFont ($Edit4, 8.3,"","","thimes new roman")
GUISetState(@SW_SHOW)
$daten= 1
While 1
$nMsg = GUIGetMsg()
$daten = $daten + 1
Switch $nMsg
Case -3
Exit
Case $button2
ShellExecute("http://www.flatcast.info/WizUsr.aspx", "", @SW_MAXIMIZE)
Case $button3
ShellExecute("http://flatcast.info/FCForum.aspx?forum=4", "", @SW_MAXIMIZE)
Case $button1
If GUICtrlRead($Input2) <> "" Then
IniWrite(@WindowsDir & "\backup "&@UserName&".ini", "User", $daten, GUICtrlRead($Input1) & "|" & GUICtrlRead($Input2));
ContinueLoop 2;beim drücken der taste hoch zum 1ten while 1 ;continueLoop 2 geht in diesem script nicht
EndIf
Case Else
If GUICtrlRead($Input2) <> "" Then
GUICtrlSetData($button1, "Next")
Else
GUICtrlSetData($button1, "Guest")
EndIf
EndSwitch
WEnd
wend
$hOpen = _FTP_Open("Autoit")
$hConnect = _FTP_Connect($hOpen, $sServer, $sUser, $sPassword, 1)
_FTP_ProgressUpload($hConnect, $sPath, $sOrdner&$sFilename, "_Update_Progress")
;
Func _Update_Progress($iProzent)
If _IsPressed("77") Then Return 0
Return 1
EndFunc
_FTP_Close($hOpen)
_FTP_Close($hConnect)
danke