Sign in to follow this  
Followers 0
blacksniper

Progress bar help...

3 posts in this topic

#1 ·  Posted (edited)

Do
$i = $num/$x
    ;msgbox(0,"loop",$i)
    GUICtrlSetData ($Progress1,$i)
    Until $num = $x
    GUISetState(@SW_Hide,$process)
    exit
    msgbox(0,"finished","done " & $num)

$num = current number loop

$x = 5644

$process = progress bar

15/5644 = .002657689.....

Progress bar doesnt go up...

if i do it the other way the bar goes full but goes backwards...

HELP!!!

:)

Edited by blacksniper

Share this post


Link to post
Share on other sites



How about switching it around a little?

For $i = 1 To $num
    GUICtrlSetData($Progress1, $i/$num*100)
Next
GUISetState(@SW_HIDE, $process)
Msgbox(0,"","Done")
Exit

I believe that's the easier way of doing it.

Kurt

thanks i am being stupid this morning, I feel dumb after that one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0