Core Function WinGetClassList

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

Contents

Description

Retrieves the classes from a window.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

Success: Returns an array containing the window classes.

Failure: Returns empty array.

Remarks

WinGetClassList works on both minimized and hidden windows.

If multiple windows match the criteria, the classes are read from the most recently active window.

See "WinTitleMatchMode" in Opt

Example

$ClassList = WinGetClassList("Untitled - Notepad", "");
foreach($ClassList as $Class)
{
	println($Class);
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox