#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Progress", 627, 99, 256, 178)
$Progress1 = GUICtrlCreateProgress(0, 0, 625, 41)
$Slider1 = GUICtrlCreateSlider(0, 40, 625, 25)
$Button1 = GUICtrlCreateButton("Progress

", 104, 64, 121, 33, $WS_GROUP)
$Progress0_input = GUICtrlCreateInput("0", 0, 72, 41, 21)
$Label1 = GUICtrlCreateLabel("to", 48, 80, 13, 17)
$Progress100_input = GUICtrlCreateInput("100", 64, 72, 41, 21)
$Button2 = GUICtrlCreateButton("&Exit", 576, 80, 49, 17, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Slider1
GUICtrlSetData($Progress1,GUICtrlRead($Slider1))
Case $Button1
For $progress = GUICtrlRead($Progress0_input) To GUICtrlRead($Progress100_input)
GUICtrlSetData($Progress1,$progress)
Sleep(200)
Next
Case $Button2
Exit
EndSwitch
WEnd