$hForm = GUICreate('', 300, 60)
$iProgress = GUICtrlCreateProgress(20, 20, 260, 20)
GUISetState()
UpProgress($iProgress, 50, 20)
DownProgress($iProgress, 20)
UpProgress($iProgress, 200, 20)
DownProgress($iProgress, 20)
Func UpProgress($iCtrl, $iVal, $iSleep)
For $i = 0 To 100
GUICtrlsetData($iCtrl, ($i + Round($iVal / 100)))
Sleep($iSleep)
Next
EndFunc
Func DownProgress($iCtrl, $iSleep)
For $i = 100 To 0 Step -1
GUICtrlsetData($iCtrl, ($i - Round(GUICtrlRead($iCtrl) / 100)))
Sleep($iSleep)
Next
EndFunc