Moo_HotkeyAdd ( sHotkey; sFile; sScript; sParam; bAlt; bControl; bShift; bGlobal );
This functions sets a hotkey to run a script.Parameters
Name | Type | Required | Default | Description |
sHotkey | String | Yes | The hotkey to register. | |
sFile | String | Yes | The file to run a script from. | |
sScript | String | Yes | The script to run. | |
sParam | String | No | The script parameter. | |
bAlt | Boolean | No | False | Use Alt as Hotkey Modifier. |
bControl | Boolean | No | False | Use Control as Hotkey Modifier. |
bShift | Boolean | No | False | Use Shift as Hotkey Modifier. |
bGlobal | Boolean | No | False | If True Hotkeys are active even if FileMaker isn't active window. |
Return Value
Returns a true if the hotkey was successfully registered, or an error code.
Notes
Added in MooPlug Version 0.4.7.
Additonal keys and modifiers were added in MooPlug version 0.4.9.
Additonal keys and modifiers were added in MooPlug version 0.4.9.
See List of Supported Hotkeys
Function Keys (F1 - F12)
A - Z and 0-9
Space, Esc, End, Home, Up, Down, Left, Right
Modifiers: Alt, Control and Shift.
A - Z and 0-9
Space, Esc, End, Home, Up, Down, Left, Right
Modifiers: Alt, Control and Shift.
Errors
Error Code | Description |
Moo_HotkeyAdd|Err_1 | Invalid number of arguments. |
Moo_HotkeyAdd|Err_2 | Unknown hotkey specified. |
Moo_HotkeyAdd|Err_3 | Error creating hotkey window. |
Moo_HotkeyAdd|Err_4 | Hotkey already registered. |
Moo_HotkeyAdd|Err_5 | Error registering hotkey. |
Related Functions