Ich beschäftige mich gerade wieder nen bisschen mit auto it und bastel mir gerade nen spambot bis jetzt sieht er so aus:
so mein problemm wenn ich jetzt auf den button 2 klick dann passiert nicht, dabei soll der spambot pausieren bzw. sich schließen. Bitte um hilfe
Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Spambot", 429, 184, 193, 125)
$Input1 = GUICtrlCreateInput("", 16, 128, 385, 21)
$Button1 = GUICtrlCreateButton("Starte Spam", 88, 64, 81, 41, 0)
$Button2 = GUICtrlCreateButton("aus", 250, 64, 81, 41, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
sleep(5000)
While 2
sleep(5000)
send(GUICtrlRead($Input1))
Send("{enter}")
WEnd
case $Button2
Exit
EndSwitch
Wend