Es ist sehr simpel (geht auch im OnEventModus), aber hier ist erstmal ein Beispiel im GuiGetMsgmode:
Spoiler anzeigen
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Enter im Inputfeld", 215, 100)
$Label1 = GUICtrlCreateLabel("EnterCounter:", 8, 8, 69, 17)
$Label2 = GUICtrlCreateLabel("0", 96, 8, 34, 17, $SS_CENTER)
$Input1 = GUICtrlCreateInput("Tippe irgendwas und danach Enter", 8, 40, 193, 21, BitOR($ES_CENTER,$ES_AUTOHSCROLL))
$Label3 = GUICtrlCreateLabel("Tippe EXIT und Enter -> Beenden", 16, 72, 165, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input1
If GUICtrlRead($Input1) = "Exit" Then Exit
GUICtrlSetData($Input1,"")
GUICtrlSetData($Label2,Execute(GUICtrlRead($Label2)+1))
EndSwitch
WEnd