- get the length of the text in the edit box
- set selection from last character - to - last character
- replace selection with new content
That way it will scroll "up".
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <GuiEdit.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 373, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 593, 305)
GUICtrlSetData(-1, "")
$Button1 = GUICtrlCreateButton("Test Me", 272, 336, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
For $i = 1 To 40
_EditScrollUp("Example Line "&$i&@CRLF)
Sleep(200)
Next
EndSwitch
WEnd
Func _EditScrollUp($content)
Local $Ed_length = StringLen(GUICtrlRead($Edit1))
_GUICtrlEdit_SetSel($Edit1, $Ed_length, $Ed_length)
_GUICtrlEdit_ReplaceSel($Edit1, $content)
EndFunc