blacksniper Posted January 30, 2007 Posted January 30, 2007 (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 January 30, 2007 by blacksniper
_Kurt Posted January 30, 2007 Posted January 30, 2007 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 Awaiting Diablo III..
blacksniper Posted January 30, 2007 Author Posted January 30, 2007 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. Kurtthanks i am being stupid this morning, I feel dumb after that one.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now