找回密码
 加入
搜索
查看: 2531|回复: 3

有问题的进度条请高手指点!!!!已解决

[复制链接]
发表于 2008-7-24 07:23:17 | 显示全部楼层 |阅读模式
#NoTrayIcon
#include <GUIConstants.au3>
GUICreate("记事本将在60秒后打开...",300, 60)

$progressbar = GUICtrlCreateProgress(5, 10, 290, 40)
GUISetState()
$i = 1
While 1
        If $i = 100 Then
                $i = 1
        EndIf
        GUICtrlSetData($progressbar, $i)
        $i = $i + 1
        ExitLoop
WEnd

$var = Sleep(6000)
If $var Then Run("notepad.exe")




[ 本帖最后由 cls822001 于 2008-7-24 08:36 编辑 ]
发表于 2008-7-24 07:46:27 | 显示全部楼层
你的看着真乱啊

#NoTrayIcon
#include <GUIConstants.au3>

;总时长设置(秒)
$time = 5
$i = 0

GUICreate("记事本将在" & $time & "秒后打开...", 300, 60)
$progressbar = GUICtrlCreateProgress(5, 10, 290, 40)
GUISetState()
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case Else
                        $i = $i + 1
                        GUICtrlSetData($progressbar, $i)
                        Sleep($time * 10)
                        If $i = 101 Then
                                Run("notepad.exe")
                                Exit
                        EndIf
        EndSwitch
WEnd
 楼主| 发表于 2008-7-24 08:28:26 | 显示全部楼层
谢谢。。。。。。。。。。。。。
发表于 2011-4-16 18:00:40 | 显示全部楼层
有什么用啊!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 07:25 , Processed in 0.077996 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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