und wiedermal weiss ich nicht weiter und benötige Hilfe :/. Ich habe in meinem Script ein Loop, der bei jedem Durchgang prüfen soll, ob man auf den Stop Button geklickt hat, oder nicht. Dies hab ich über eine Variable ($stop) gemacht. Leider funktioniert das ganze irgentwie nicht :S.
[autoit]#include <IE.au3>
#include <GUIConstants.au3>
#include <INet.au3>
#include <string.au3>
#include <array.au3>
#include <file.au3>
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x00FF00)
$Form1 = GUICreate("Test", 755, 155, 192, 125, $DS_MODALFRAME, $WS_EX_TOOLWINDOW)
$Button_start = GUICtrlCreateButton("Start", 87, 0, 86, 17)
$Button_stop = GUICtrlCreateButton("Stop", 173, 0, 86, 17)
$Input_hotel = GUICtrlCreateInput("Hotel", 1, 16, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_habbo = GUICtrlCreateInput("Habboname", 1, 32, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_amount = GUICtrlCreateInput("Amount", 1, 48, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_delay = GUICtrlCreateInput("Delay", 1, 64, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_id = GUICtrlCreateInput("Habbo ID", 1, 80, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_message = GUICtrlCreateInput("Message", 1, 96, 160, 17, -1, $WS_EX_CLIENTEDGE)
$Input_status = GUICtrlCreateInput("Status - Inactive - Press Load Habbo to Start", 1, 113, 747, 17, $ES_READONLY, $WS_EX_CLIENTEDGE)
GUISetState(@SW_SHOW)
[/autoit][autoit][/autoit][autoit]Global $stop = 0
[/autoit][autoit][/autoit][autoit]While 1
$msg = GuiGetMsg()
Select
Case $msg = $Button_start
$oIE = _IECreate ("https://www." & GUICtrlREad($Input_hotel) & "/account/login")
$while = 0
$status = 0
While $while < GUICtrlREad($Input_amount)
stop()
WEnd
Case $msg = $Button_stop
$stop = 1
Case Else
;;;;;;;
EndSelect
WEnd
Func stop()
If $stop = 1 Then
$while = GUICtrlREad($Input_amount)
ElseIf $stop = 0 Then
_IENavigate ($oIE, "http://" & GUICtrlREad($Input_hotel) & "/myhabbo/guestbook/add?ownerId=" & GUICtrlRead($Input_id) & "&message=" & GUICtrlRead($Input_message) & "&_=")
$status = $status + 1
Sleep(GUICtrlREad($Input_delay))
$while = $while + 1
EndIf
EndFunc
Ich hab noch gesehen dass man bei der "ExitLoop [level]" Funktion das level, also welchen Loop man beenden will einstellen kann. Nur muss man dazu ja irgentwo bei "While" noch ein level eingeben können, oder wie is das gemeint?