程序每DO一次,更新一下label值不就行了?难道我没有理会楼主的意思?#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=D:\LearnAU3\Questions\ChangeLabelNTimes.kxf
$ChangeLabelNTimes = GUICreate("ChangeLabelNTimes", 322, 165, 193, 125)
$Label1 = GUICtrlCreateLabel("程序正在运行中。。。", 24, 32, 124, 17)
$Label2 = GUICtrlCreateLabel("已经重复做了", 72, 72, 76, 17)
$NTimesLabel = GUICtrlCreateLabel("NTimesLabel", 152, 72, 66, 17)
$Label3 = GUICtrlCreateLabel("次", 232, 72, 16, 17)
$MinButton = GUICtrlCreateButton("MinButton", 120, 112, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $n = 0
While 1
$n+=1
GUICtrlSetData($NTimesLabel,$n)
Sleep(100)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_EVENT_MINIMIZE
WinSetState($ChangeLabelNTimes, "", @SW_MINIMIZE)
Case $MinButton
WinSetState($ChangeLabelNTimes, "", @SW_MINIMIZE)
EndSwitch
WEnd
[ 本帖最后由 colosky 于 2008-6-26 15:37 编辑 ] |