Core Function WinGetProcess

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> WinGetProcess ( <title>, <text> ) </pre> === Description === Retrieves the Process ID (PID) associated with a window. === Parameters === ==== Title ==== The title of t...")
Newer edit →

Revision as of 19:13, 29 November 2011

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 -1.

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