Hey Leute, ich hab ein kleines Problem, und zwar lässt sich die While schleife die ich mit dem Start button starte nicht beenden, ich habe bereits gelesen das die Schleife die Gui blockiert allerdings bin ich noch sehr neu und weiß nicht wie ich das beheben soll, wär nett wenn mal einer eine gänginge Methode postet/erklärt.
Grüße
Quellcode:pimp:
Grüße
Quellcode:pimp:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Fabi\Desktop\Autoit Scripts\Spambot\bettergui.kxf
$Form1 = GUICreate("Form1", 473, 146, 192, 124)
GUISetBkColor(0x5CD259)
$KeyLABEL = GUICtrlCreateLabel("Chattaste:", 8, 56, 52, 17)
$KeyINPUT = GUICtrlCreateInput("{Enter}", 72, 56, 73, 21)
$TimeLABEL = GUICtrlCreateLabel("Zeitintervalle:", 152, 56, 67, 17)
$TimeINPUT = GUICtrlCreateInput("", 224, 56, 97, 21)
$ChatLABEL = GUICtrlCreateLabel("Spamnachricht:", 8, 88, 78, 17)
$ChatINPUT = GUICtrlCreateInput("", 88, 88, 377, 21)
$Start = GUICtrlCreateButton("Start", 328, 56, 65, 25)
$Stop = GUICtrlCreateButton("Stop", 400, 56, 65, 25)
$Headline = GUICtrlCreateLabel("Universal Spambot", 88, 8, 293, 33)
GUICtrlSetFont(-1, 24, 800, 0, "LCDMono2")
$Info = GUICtrlCreateLabel("Info: Time in Milliseconds! (1second = 1000Milliseconds)", 8, 120, 396, 16)
GUICtrlSetFont(-1, 10, 800, 0, "LCDMono2")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start
While 1
Send(GUICtrlRead($KeyINPUT))
Send(GUICtrlRead($ChatINPUT))
Sleep(GUICtrlRead($TimeINPUT))
Wend
Case $Stop
Exit
EndSwitch
WEnd