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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Process.IsFrontMost

Checks if FileMaker is the frontmost application.

Component Version macOS Windows Linux Server iOS SDK
Process 2.9 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Process.IsFrontMost" )

Parameters

none

Result

Returns 1 if FileMaker is frontmost and 0 if not.

Description

Checks if FileMaker is the frontmost application.
If the function returns zero, you can call Process.SetFrontMost to move FileMaker to the front.
Added support for Windows in plugin version 4.2.

Examples

Check if we are in background and move us to front:

If [ MBS( "Process.IsFrontMost" ) = 0 ]
    Set Variable [ $r ; Value: MBS( "Process.SetFrontMost" ) ]
End If

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 25th November 2019


Process.GetCurrentDirectory - Process.IsRunning

Feedback: Report problem or ask question.