Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4    Statistic  

Process.FrontWindowTitle

Queries name of the frontmost window.

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

Parameters

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

Result

Returns window title.

Description

Queries name of the frontmost window.
On Mac OS X 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

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


Process.FrontProcessName   -   Process.GetCurrentDirectory

Feedback: Report problem or ask question.




Links
MBS FileMaker blog