Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

This function checks for a license.

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


Process.GetDllDirectory - Process.IsRunning