Core Function WinGetTitle

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

Contents

Description

Retrieves the full title from a window.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

Returns a string containing the complete window title.

Returns numeric 0 if no title match.

Remarks

WinGetTitle("") returns the active window's title.

WinGetTitle works on both minimized and hidden windows.

If multiple windows match the criteria, the most recently active window is used.

See "WinTitleMatchMode" in Opt

Example

$title = WinGetTitle("Untitled -", "");
MsgBox("Full title read was: $title");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox