Das bezweifle ich... So sollte das aussehen:
PHP Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 451, 193, 125)
$Label1 = GUICtrlCreateLabel("Test", 24, 24, 193, 83)
GUICtrlSetFont(-1, 35, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Button1", 72, 216, 353, 145, 0)
GUISetState(@SW_SHOW, $Form1)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Select
Case $nMsg[0] = $GUI_EVENT_CLOSE
Exit
Case $nMsg[0] = $Button1
_start()
EndSelect
WEnd
Func _start()
GUICtrlSetData($Label1, "Bot wird gestartet...")
MouseClick ( "left", 91, 766, 1)
EndFunc
Sogenannte Header-Dateien (#include...) gehören an den Anfang eines Codes.
Deine Switch Case Variante hab ich nicht mal gefunden,
aber schien für mich nicht zu funktionieren.
Was funktioniert davon überhaupt ?
Die MsgBox, wie gesagt, ist gay... hab es mal so geändert wie ich es vorher meinte...
Best regards, me.
P.S.: Die Formgröße ist vooooooolllll übertrieben groß ^^
PHP Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("~~~ B.O.T. ~~~", 250, 150, 193, 125)
$Label1 = GUICtrlCreateLabel("Status: iniated...", 24, 24, 193, 83)
GUICtrlSetFont(-1, 20, 200, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Button1", 24, 80, 200, 50, 0)
GUISetState(@SW_SHOW, $Form1)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Select
Case $nMsg[0] = $GUI_EVENT_CLOSE
Exit
Case $nMsg[0] = $Button1
_start()
EndSelect
WEnd
Func _start()
GUICtrlSetData($Label1, "Status: started...")
MouseClick ( "left", 91, 766, 1)
EndFunc
Besser, oder? :P