Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets which script to call if hotkey is pressed.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
HotKey | 5.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
HotKeyRef | The reference value for the hotkey as returned by HotKey.Register function. | $hotkey | |
Filename | The database file name where the script is located. | "test.fmp12" | |
ScriptName | The script name. | "MyScript" | |
Parameter | The parameter to pass. If empty or not defined, we pass the HotKey reference number. |
Optional |
Returns OK or error.
Register Control-F5:
Set Field [HotKeys::HotKey ID; MBS("HotKey.Register"; "F5"; "control")]
Set Variable [$r; Value:MBS("HotKey.SetScript"; HotKeys::HotKey ID; Get(FileName); "HotkeyAction")]
This function is free to use.
Created 4th February 2015, last changed 20th February 2022