blacksniper Posted January 30, 2007 Share 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 Link to comment Share on other sites More sharing options...
_Kurt Posted January 30, 2007 Share 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.. Link to comment Share on other sites More sharing options...
blacksniper Posted January 30, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
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