TuMiM Posted February 15, 2006 Posted February 15, 2006 Is there a way to make a progress bar that is not by percentage. One that will just keep running until a runwait completes? Case $msg = $Button1 ProgressOn("test", "test") Runwait("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix","", @SW_HIDE) ProgressOff()
GaryFrost Posted February 15, 2006 Posted February 15, 2006 Is there a way to make a progress bar that is not by percentage. One that will just keep running until a runwait completes? Case $msg = $Button1 ProgressOn("test", "test") Runwait("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix","", @SW_HIDE) ProgressOff() might try a run command, i.e. $PID = Run("your command") While $PID Sleep ( 1000 ) ;ProgressSet command $PID = ProcessExists($PID) Wend SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
TuMiM Posted February 15, 2006 Author Posted February 15, 2006 might try a run command,i.e. $PID = Run("your command")While $PID Sleep ( 1000 ) ;ProgressSet command $PID = ProcessExists($PID)WendWhat would the progressset command be for that?
TuMiM Posted February 15, 2006 Author Posted February 15, 2006 What would the progressset command be for that? ProgressOn("test", "test") $PID = Run("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix","", @SW_HIDE) While $PID Sleep ( 1000 ) ProgressSet($pid) $PID = ProcessExists($PID) Wend ProgressOff() The above doesn't do anything in the progress bar. It just stays empty. I know i am doign something wrong. What?
GaryFrost Posted February 15, 2006 Posted February 15, 2006 (edited) ProgressOn("test", "test") $PID = Run("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix","", @SW_HIDE) While $PID Sleep ( 1000 ) ProgressSet($pid) $PID = ProcessExists($PID) Wend ProgressOff() The above doesn't do anything in the progress bar. It just stays empty. I know i am doign something wrong. What? ProgressOn("test", "test") $PID = Run("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix", "", @SW_HIDE) $x = 0 $Forward = 1 While 1 Sleep(200) If $Forward Then If $x < 100 Then $x = $x + 10 Else $Forward = 0 EndIf Else If $x > 0 Then $x = $x - 10 Else $Forward = 1 EndIf EndIf ProgressSet($x) $PID = ProcessExists($PID) WEnd ProgressOff() Edited February 15, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
TuMiM Posted February 16, 2006 Author Posted February 16, 2006 ProgressOn("test", "test") $PID = Run("\\Server\netlogon\kix32.exe \\Server\netlogon\vpnscript.kix","", @SW_HIDE) While $PID Sleep ( 1000 ) ProgressSet($pid) $PID = ProcessExists($PID) Wend ProgressOff() The above doesn't do anything in the progress bar. It just stays empty. I know i am doign something wrong. What? Can anyone help me out here?
GaryFrost Posted February 16, 2006 Posted February 16, 2006 Can anyone help me out here? look at my exampleyours just keeps setting the percent to the pid SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
TuMiM Posted February 16, 2006 Author Posted February 16, 2006 ok. I see your code but it just keeps going. It never stops when the process is complete.
Developers Jos Posted February 16, 2006 Developers Posted February 16, 2006 try: While ProcessExists($PID) Sleep(200) If $Forward Then If $x < 100 Then $x = $x + 10 Else $Forward = 0 EndIf Else If $x > 0 Then $x = $x - 10 Else $Forward = 1 EndIf EndIf ProgressSet($x) WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
TuMiM Posted February 16, 2006 Author Posted February 16, 2006 Thank you. That is great! Just one more thing. How do you embed a progress bar in a gui if possible?
Developers Jos Posted February 16, 2006 Developers Posted February 16, 2006 GUICtrlCreateProgress() will enabe you to create a progressbar in a GUI that is created in AutoIt3. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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