基 础 函 数 参 考
ProcessWait
暂停脚本执行,直至指定进程出现.
ProcessWait ( "进程" [, 超时] )
参 数
进程
目标进程的名称.
超时
[可选参数] 等待时间(秒). 默认为无限期等待.
返 回 值
成功:
返回进程 PID.
失败:
返回 0, 已超时.
备 注
进程名是没有完整路径的可执行文件, 如 "notepad.exe" 或 "winword.exe"
每隔 250 毫秒左右进程将被检测一次.
本函数是唯一不接受 PID 作为参数的进程函数. 因为 PID 是随机分配的, 等待一个特定的 PID 出现没有任何意义.
相 关 函 数
ProcessClose
,
ProcessExists
,
ProcessWaitClose
,
RunWait
,
WinWait
,
WinWaitActive
,
ProcessList
,
RunAsWait
,
WinGetProcess
函 数 示 例
ProcessWait
(
"notepad.exe"
)
provider with
jb51.net (unicode)