Method Reference
WinGetProcess
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 "". |
Related
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") WScript.Echo oAutoIt.WinGetProcess("Untitled - Notepad")