PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Progressbar", 510, 29, 258, 191)
$Progress1 = GUICtrlCreateProgress(0, 8, 414, 17)
$Button1 = GUICtrlCreateButton("Start", 432, 0, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
_start()
EndSwitch
WEnd
func _start()
for $i = 0 to 100 step +1 ; while to step 100
GUICtrlSetData($Progress1,$i) ;edit the progressbar
Sleep(10)
Next
EndFunc