Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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