UVK scripting commands - ->WaitProcessClose() |
Syntax:
->WaitProcessClose( )
Description:
Wait until a process closes.
Parameters:
timeout (optional) - The timeout, in seconds to wait. Default is
1000000.
path (optional) - Monitor this process path rather than
the <Run> command's pid.
Remarks:
Optional parameters do not need to be specified.
All automation
functions must be called in the <Run> mode.
Example:
;This code block will open notepad,
send "My text" and wait for the process to end
<Run>
notepad.exe
->WaitWindow()
->WaitControl(Edit1)
->ControlSend(Edit1,My text)
->WaitProcessClose()
Back to the list