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  

Process.FrontWindowTitle

Queries name of the frontmost window.

Component Version macOS Windows Linux Server iOS SDK
Process 4.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Process.FrontWindowTitle" { ; index } )   More

Parameters

Parameter Description Example Flags
index Optional for Mac. Pass -1 to return number of windows. Else pass index from 0 to count-1 to query title of nth window. "" Optional

Result

Returns window title.

Description

Queries name of the frontmost window.
On macOS requires you to allow FileMaker accessibility functions. In System Preferences check privacy control panel and add FileMaker there to the list allowed for assistive input.

Examples

Query title of focused window:

MBS( "Process.FrontWindowTitle")

Query on Mac number of Windows.

MBS( "Process.FrontWindowTitle"; -1 )

Query on Mac the second window:

MBS( "Process.FrontWindowTitle"; 1 )

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 10th August 2020


Process.FrontProcessName - Process.GetCurrentDirectory

💬 Ask a question or report a problem