Method Reference (COM)

WinGetProcess

ウィンドウと関連付けられたプロセスID (PID)を取得します。

WinGetProcess "title" [, "text"]

 

パラメータ

title 対象となるウィンドウのタイトル
text オプション:対象となるウィンドウのテキスト

 

返し値

成功: 数値のプロセスID (PID)を格納した文字列を返します。
失敗: "" を返します。

 

注意

なし。

 

関連

ProcessWait, ProcessWaitClose

 

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
WScript.Echo oAutoIt.WinGetProcess("Untitled - Notepad")