本帖最后由 pjydsj 于 2009-11-24 23:56 编辑
进度条显示成功,但是下载的文件不完整,代码如下:#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Documents and Settings\Ming\桌面\Form1.kxf
$Form1 = GUICreate("360安全卫士", 338, 89, 335, 218)
$Progress1 = GUICtrlCreateProgress(16, 16, 302, 17)
$Button1 = GUICtrlCreateButton("开始", 128, 48, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
If $nMsg=$Button1 Then GUICtrlSetData($Button1,'停止')
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
请高手帮忙解决 |