欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

函數(shù)說明

ProcessWaitClose

暫停腳本的執(zhí)行直至給定進程不再存在為止。

ProcessWaitClose ( "進程名" [, 超時時間] )

 

參數(shù)

進程名 目標進程的名稱或 PID(進程標識符)。
超時時間 [可選參數(shù)] 指定要等待的時間長度(默認為一直等待)。

 

返回值

成功: 返回值為1。
失敗: 返回值為0,說明已超時。

 

注意

進程名是指可執(zhí)行文件的名稱(無需給出完整路徑),例如:"notepad.exe" 或 "winword.exe"
PID 是標識進程的唯一的數(shù)值。PID 可通過 ProcessExists 或 Run 命令的返回值獲得。
為使 ProcessWaitClose 函數(shù)能在 Windows NT 4.0 下工作,系統(tǒng)還需要一個 DLL 文件(PSAPI.DLL,已包含在 AutoIt 的安裝目錄下)。
每隔 250 毫秒左右進程將被檢測一次。

 

相關

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)