GetWindowName$

Windows management function.

The GetWindowName$ function returns the name of the window specified by its handle.

Syntax

var$=GetWindowName$(<handle>)

Parameters

<handle>, numeric. Handle of the window we are looking for its name.

Return value

var$ : string, window name, including its instance, of the window specified by its <handle>. If no window is found, an empty string is returned.

See also

GetWindowHandle

Examples

shell("wordpad.exe")

a=GetWindowhandle("WORDPAD.EXE|RichEdit20A|document - WordPad|1")

ret=UseWindowhandle(a)

msgbox(ret)

a$=getwindowname$(a)

msgbox(a$)

a$ contains the window name of WordPad window.