Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Window.List

Queries the list of FileMaker windows.

Component Version macOS Windows Linux Server iOS SDK
Window 3.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Window.List" )

Parameters

none

Result

Returns the list of window references.

Description

Queries the list of FileMaker windows.
See also RemoteControl.GetWindowsList function on Windows.
We filter this list to have no windows of zero size and avoid having controls listed here on Windows.

Examples

Find all visible windows and return list of titles:

While(
[
    names = "";
    list = MBS( "Window.List" );
    count = ValueCount(list);
    index = 1
] ;
    index ≤ count ;
[
    WindowID = GetValue(list; index);
    WindowVisible = MBS("Window.IsVisible"; WindowID);
    WindowTitle = MBS( "Window.GetTitle"; WindowID);
    names = names & If(WindowVisible; WindowTitle & ¶; "");
    index = index + 1
] ;
// return all the titles of visible windows
names )

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 19th December 2022


Window.IsVisible - Window.ListCommands

💬 Ask a question or report a problem