Retrieves the Process ID (PID) associated with a window.
WinGetProcess "title" [, "text"]
Parameters
title | The title of the window to read. |
text | [optional] The text of the window to read. |
Return Value
Success: | Returns a string containing the numeric Process ID (PID). |
Failure: | Returns "". |
Remarks
None.
Related
ProcessWait, ProcessWaitClose
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
WScript.Echo oAutoIt.WinGetProcess("Untitled - Notepad")