Hi all,
irgendwie stehe ich seit gestrn auf dem Schlauch. Mir gelingt es einfach nicht aus einer Do...Until Schleife heraus neben ESC als Abbruch Event den Abbruch mit $Gui_Event_Close herbeiführen ....
M.E. liegt das daran, dass ich den $GUI_EVENT_CLOSE innerhalb der Schleife herbeiführen muss. Und genau das klappt nicht
Vielleicht ist das ja ganz einfach - wenn man es weiss - Danke schon einmal im voraus für jedwede Hilfe
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$bStop = False
HotKeySet('{ESC}', '_Stop')
Do
$iDiff = _DateDiff('s', '2010/08/15 08:00:00', _NowCalc())
GUICtrlSetData($Timer, _SecondsToDateTime($iDiff))
Sleep(500)
Until $bStop
Exit
WEnd
Func _Stop()
$bStop = True
EndFunc ;==>_Stop
Gruss
Chris