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

HotKey.SetFileMakerWindowOnly

Set whether to only run the hotkey when a FileMaker document window is frontmost.

Component Version macOS Windows Linux Server iOS SDK
HotKey 16.0 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "HotKey.SetFileMakerWindowOnly"; HotKeyRef; Value )   More

Parameters

Parameter Description Example
HotKeyRef The reference value for the hotkey as returned by HotKey.Register function. $hotkey
Value The new setting.
Pass 1 or 0.
1

Result

Returns OK or error.

Description

Set whether to only run the hotkey when a FileMaker document window is frontmost.
Especially if you have data viewer or debugger frontmost, the hotkey will not trigger, if this setting is activated.

Examples

Only run hotkey when FileMaker document is active:

Set Variable [ $r ; Value: MBS("HotKey.SetFileMakerWindowOnly"; $HotKey; 1) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 24th December 2025, last changed 24th December 2025


HotKey.SetEvaluate - HotKey.SetIgnoreOnModal