你这是创建了3次进度条,而不是在一个进度条上修改进度…
#include '_LabelProgress.au3'
$Form1 = GUICreate('反色文字Label进度条 @afan', 380, 80)
GUISetState()
$aProgress = _LabelProgress_Create(20, 20, 300, 30, ' 1.正在解压...')
$i = 1
Do
Sleep(200)
$i += Random(0, 2, 1)
_LabelProgress_Set($Form1, $aProgress, $i)
Until $i >= 30
Sleep(2000)
;~ $aProgress = _LabelProgress_Create(20, 20, 300, 30, ' 2.开始安装...')
$i = 30
_LabelProgress_SetText($Form1, $aProgress, ' 2.开始安装... ' & $i & '%')
Do
Sleep(200)
$i += Random(0, 2, 1)
_LabelProgress_Set($Form1, $aProgress, $i)
Until $i >= 80
Sleep(2000)
;~ $aProgress = _LabelProgress_Create(20, 20, 300, 30, ' 3.安装完成')
$i = 80
_LabelProgress_SetText($Form1, $aProgress, ' 3.完成安装... ' & $i & '%')
Do
Sleep(200)
$i += Random(0, 2, 1)
_LabelProgress_Set($Form1, $aProgress, $i)
Until $i >= 101
_LabelProgress_Off($aProgress)
Exit
|