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

进度条走完完程了..怎么GUICtrlSetData到初始状态?

[复制链接]
发表于 2009-7-30 18:25:28 | 显示全部楼层 |阅读模式
本帖最后由 sunny617 于 2009-7-30 23:42 编辑

如题:


我的进度条走完全程之后
Func _Progress()
        GUICtrlSetData ($Progress1,($t/$sleep)*100)
         $t += 1  
        If $t = $sleep Then
                GUICtrlSetData($Progress1,$t)
                BBA()
        EndIf
               
               
EndFunc       
--------------------------------------------
在再次循环启动时..还是无法反回初始状态从来

 楼主| 发表于 2009-7-30 18:37:45 | 显示全部楼层


求高手帮忙下为什么不行???

GUICtrlSetData($Progress1,$t)
发表于 2009-7-30 18:38:38 | 显示全部楼层
.............
If $t = $sleep Then
           $t = 0 ;+
..........
 楼主| 发表于 2009-7-30 23:34:09 | 显示全部楼层
Func _Progress()
        GUICtrlSetData ($Progress1,($t/$sleep)*100)
         $t += 1  
        If $t = $sleep Then
            $t = 0
                GUICtrlSetData($Progress1,$t)
                BBA()
        EndIf
               
               
EndFunc
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-2 14:27 , Processed in 0.071768 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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