Hallo,
habe mal wieder ein Problem mit einem Loop.
Folgendes:
Wenn ich den Button anklicke,
dann soll der Loop endlos laufen und erst
aufhören, wenn ich den Button erneut drücke.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form3 = GUICreate("Form3", 403, 116, 302, 218)
$Button1 = GUICtrlCreateButton("Blättern", 112, 24, 177, 65)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1
Sleep(2000)
Send("{RIGHT}")
Sleep(50)
WEnd
EndSwitch
WEnd
Gut wäre auch wenn sich die Caption ändert (Weiter/Stop)
Habe in der Hilfe ExitLoop probiert
das Problem ist aber wie kann ich das mit nur einem Button machen?
Liebe Grüße
Ilse