Not really as you changed the problem half way through the thread. But disregarding all of the above here is an example for you...
Example of your current problem:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
_Main()
Func _Main()
Local $iLabel, $sRead
GUICreate("Example by guinness")
$iLabel = GUICtrlCreateLabel("", 5, 5, 490)
GUISetState(@SW_SHOW)
$sRead = StringReplace(IniRead("Settings.ini", "Section", "Key", "myUserName: @UserName"), "@UserName", @UserName) ; Use StringReplace!
GUICtrlSetData($iLabel, $sRead)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndFunc ;==>_Main