#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 336, 296, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 104, 32, 121, 49, $WS_GROUP)
$Progress1 = GUICtrlCreateProgress(32, 104, 257, 41)
$Input1 = GUICtrlCreateInput("Input1", 32, 184, 265, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch

	$Button = IniRead ("LiveIni.ini", "GUI", "Button", "Error")
	$Progress = IniRead ("LiveIni.ini", "GUI", "Progress", "Error")
	$Input = IniRead ("LiveIni.ini", "GUI", "Input", "Error")
	GUICtrlSetData ($Button1, $Button)
	GUICtrlSetData ($Progress1, $Progress)
	GUICtrlSetData ($Input1, $Input)
	Sleep (100)
WEnd
