Hallo
Ich habe mal ne Frage unzwar ,wie kann ich eine
While 1
..
WEnd
Schleife beenden
hier ma das skript:
[autoit]#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("The Way to AfK", 283, 83, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST, $WS_EX_WINDOWEDGE))
$Label1 = GUICtrlCreateLabel("Client:", 8, 8, 40, 17)
$Combo1 = GUICtrlCreateCombo("", 48, 8, 145, 25)
$Label2 = GUICtrlCreateLabel("", 8, 48, 4, 4)
$Radio1 = GUICtrlCreateRadio("Person 1", 208, 8, 73, 17)
$Button1 = GUICtrlCreateButton("Start", 64, 48, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Stop", 176, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($Radio1) = $Gui_CHECKED Then
While 1
ControlSend(GUICtrlRead($Combo1), "", "Edit1", "1")
Sleep(10000)
WEnd
Else
MsgBox(48, "", "Take a tick into the Radiobox!")
EndIf
Case $Button2
ExitLoop
hier weiss ich jetzt net ...
EndSwitch
WEnd