window(string title) : HWND

Returns a handle to the active window when its title bar contains the title string. Can be used to wait until a certain window or dialog becomes active.

Parameters:

title - part of the window title (case sensitive), or 0 for returning the handle to the window that recently became active.

Returns:

HWND of the found active window. Otherwise 0.

Remarks:

Example:

See keys.

See also:

keys, order, exec, mouse, HWnd

► latest version online