Core Function WinGetProcess

From Sputnik Wiki
Jump to: navigation, search
WinGetProcess ( <title>, <text> )

Contents

Description

Retrieves the Process ID (PID) associated with a window.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

Success: Returns a numeric Process ID (PID).

Failure: Returns @PTRZero.

Remarks

Use WinGetProcess ("") to get active window.

See "WinTitleMatchMode" in Opt

Example

$pid = WinGetProcess("Untitled - Notepad");
MsgBox("PID is: $pid");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox