暂停脚本的执行直至给定进程不再存在为止。
ProcessWaitClose ( "进程名" [, 超时时间] )
参数
| 进程名 | 目标进程的名称或 PID(进程标识符)。 |
| 超时时间 | [可选参数] 指定要等待的时间长度(默认为一直等待)。 |
返回值
成功: 返回值为1。
注意
进程名是指可执行文件的名称(无需给出完整路径),例如:"notepad.exe" 或 "winword.exe"
相关
ProcessClose, ProcessExists, ProcessWaitClose, RunWait, WinWaitClose
示例
;waits until no instance of notepad.exe exists
ProcessWaitClose("notepad.exe")
; This will wait until this particular instance of notepad has exited
$PID = Run("notepad.exe")
ProcessWaitClose($PID)