Suchst du das?:
Spoiler anzeigen
$IniPath = @ScriptDir & "\Quickchat.ini"
[/autoit] [autoit][/autoit] [autoit]$Form1 = GUICreate("Form1", 363, 436, 617, 213)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 345, 337)
GUICtrlSetFont(-1, 12)
$Button1 = GUICtrlCreateButton("Button1", 96, 368, 177, 57)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
_FillEdit($Edit1, $IniPath, "Quickchat")
EndSwitch
WEnd
Func _FillEdit($hWnd, $sPath, $sSection)
Local $sInput = ""
$aRead = IniReadSection($sPath, $sSection)
If @error Then SetError(1, 0, 0)
If IsArray($aRead) Then
For $i = 1 To Ubound($aRead) - 1
If Not ($i = UBound($aRead) -1) Then
$sInput &= ($aRead[$i][1]) & @CRLF
Else
$sInput &= ($aRead[$i][1])
EndIf
Next
GUICtrlSetData($hWnd, $sInput & @CRLF)
If @error Then SetError(2, 0, 0)
EndIf
Return 1
EndFunc