#include <GUIConstantsEx.au3>
#include <GUIEdit.au3>
$hGUI = GUICreate("_GUICtrlEdit_AppendText", 300, 200)
$nEdit = GUICtrlCreateEdit("", 20, 40, 260, 120)
GUISetState(@SW_SHOW, $hGUI)
AdlibRegister("_SetData", 1000)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _SetData()
_GUICtrlEdit_AppendText($nEdit, "New Data" & @CRLF)
EndFunc