fowmow Posted August 15, 2007 Share Posted August 15, 2007 OK, I am sure there is either something easy I am missing or some veteran trick here. I need my script to wait for my process to finish, so I figured RunWait. However, I need to be able to capture the output as Run would allow. What am I overlooking? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 15, 2007 Developers Share Posted August 15, 2007 Use Run() in stead of RunWait() ... the example will demonstrate how it all works . 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. Link to comment Share on other sites More sharing options...
bluebearr Posted August 15, 2007 Share Posted August 15, 2007 Something like this: $PID = Run(@WindowsDir & "\notepad.exe") $idx = 0 While ProcessExists($PID) $idx += 1 ConsoleWrite("Do something : " & StringFormat("%04s" & @LF,$idx)) Sleep(100) WEnd BlueBearrOddly enough, this is what I do for fun. Link to comment Share on other sites More sharing options...
fowmow Posted August 15, 2007 Author Share Posted August 15, 2007 That did the trick, bluebearr! I knew it was something simple. 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