hi so da mir aufgefallen ist das nie so richtig weis wie ich die while schleife einfach bende oder stope werd ich jetz hir ma fragen : wie bende/stoppe ich eine while schleife ir ein beispiel wie ich es ma versucht hab naja rumgespield ![]()
Spoiler anzeigen
***************************------>>>>>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 116, 95, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 16, 16, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 16, 48, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$set = stop()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
start()
case $Button2
stop ()
EndSwitch
WEnd
Func start()
While 2
send("hello")
if $set then ExitLoop
WEnd
EndFunc
Func stop()
[/autoit] [autoit][/autoit] [autoit]Exit
EndFunc