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 |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Flags | Available in MBS FileMaker Plugin 14.1 or newer. Pass sum of the flags you like to use. 1: return names instead of IDs. 2: filter to only FileMaker document windows. 4: filter to only return visible windows. |
1+2 | Optional |
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 )
All window IDs:
MBS( "Window.List"; 0)
All visible window names:
MBS( "Window.List"; 1+4)
All visible database windows:
MBS( "Window.List"; 1+2+4)
See also
- RemoteControl.GetWindowsList
- Window.GetTitle
- Window.Hide
- Window.IsVisible
- Window.ListCommands
- Window.RunCommand
- WindowsML.List
- WinPDF.List
Release notes
- Version 14.1
- Added Flags parameter to Window.List to return names instead of IDs and filter for database windows only and/or visible windows.
- Version 10.0
- Fixed bug in Window.List on windows to remove empty lines.
Example Databases
Blog Entries
- Neues MBS Plugin 14.1 für Claris FileMaker
- MBS Plugin 14.1 for Claris FileMaker
- MBS FileMaker Plugin, version 14.1pr4
- MBS FileMaker Plugin, version 9.6pr1
- MBS Filemaker Plugin, version 3.3pr6
This function is free to use.
Created 18th August 2014, last changed 23th February 2024