找回密码
 加入
搜索
查看: 1145|回复: 2

新手提问进度条

[复制链接]
发表于 2009-2-24 14:41:14 | 显示全部楼层 |阅读模式
请教让进度条运行方法
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 431, 165, 305, 277)
$Progress1 = GUICtrlCreateProgress(0, 120, 345, 17)
$Button1 = GUICtrlCreateButton("Button1", 8, 40, 113, 25, 0)
$Button2 = GUICtrlCreateButton("Button2", 152, 40, 113, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd



[ 本帖最后由 17911 于 2009-2-24 16:54 编辑 ]
发表于 2009-2-24 16:23:36 | 显示全部楼层
要做循环,或者是向里面写入数据,然他达到100%
发表于 2009-2-24 16:27:47 | 显示全部楼层
Case $Button1
                        For $I = 1 To 10
                        GUICtrlSetData($Progress1,$I&"0")
                        Sleep(1000)
                        Next

评分

参与人数 1金钱 +5 收起 理由
17911 + 5 问题解决,谢谢指教

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 00:34 , Processed in 0.076546 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表