Sorry, aber jetzt steh ich total auf'm Schlauch und hab das Gefühl das hier könnte für mich in einer kleinen Peinlichkeit enden, aber ...
Welchen Vorteil bring mir in der Praxis die do...until gegenüber dem hier?
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ArrayMore.au3>
Global $aLabels[1][2]
$aLabels[0][0] = 0
$Form1 = GUICreate("Form1", 117, 33, 192, 124)
$_Label = _GuiCtrlLabel_Create(8, 8, 86, 17,"xDD", "_GUICTrlLabel_Msg")
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
For $i = 0 To $aLabels[0][0]
If $nMsg = $aLabels[$i][0] Then Call($aLabels[$i][1])
Next
WEnd
Func _GuiCtrlLabel_Create($_LEFT,$_TOP,$_WIDTH,$_HEIGHT,$_Text, $sEvent)
$aLabels[0][0] += 1
_Array2DAdd($aLabels, GUICtrlCreateLabel($_Text,$_LEFT,$_TOP,$_WIDTH,$_HEIGHT) & "|" & $sEvent)
EndFunc ;==>_GuiCtrlLabel_Create
Func _GUICTrlLabel_Msg()
MsgBox(0,"","")
EndFunc