>>DECLARE Sleep IN WIN32API INTEGER dwMillisecs
>
>Ed, would giving the user the option of pressing a key for example, the Esc key to invoke the KillProc() method be a good idea? If so, how do I check if the user has indeed pressed the Esc key.
>
Look at the LaunchAppAndWait() method code - it uses < Esc > to terminate waiting on the app to finish; you could use similar code to abort your loop.