#include <File.au3>
#include <Array.au3>
#include <GUIListView.au3>
#include <Timers.au3>
;Form1
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;Form GetKeyword新增
#include <GUIListBox.au3>
;进度条
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
Global $ProgressTitle
$Step123="正在计算,请耐心等待!"
GUICreate("--- 耐心等待,若需终止请右下角或任务管理器 ---", 280, 100, 100, 200,$WS_BORDER,$WS_EX_TOPMOST)
$progressbar1 = GUICtrlCreateProgress(10, 10, 255, 20, $PBS_SMOOTH)
$Label = GUICtrlCreateLabel($Step123, 10, 50, 255, 20, $SS_CENTER)
GUISetState(@SW_HIDE); = 隐藏窗口
Global $i,$j
$j=9000
$ProgressTitle="1"
For $i=0 to $j
Processbar($i,$j,$ProgressTitle)
Next
MsgBox(262144,"","The end")
GUISetState(@SW_HIDE)
Func Processbar($start,$end,$ProgressTitle)
$jindu=Int($start/$end*10000)/100
;~ MsgBox(262144,"进度",$start & "-" & $end & "-" & $jindu)
GUICtrlSetData($Label,$ProgressTitle & "阶段进度..." & $jindu & " % 剩余项:"& $end-$start)
GUICtrlSetData($progressbar1,$jindu)
GUISetState(@SW_SHOW );@SW_HIDE = 隐藏窗口
EndFunc
下面的进度会不停闪烁,请问怎么修改一下? |