HotKey.SetEnabled
-----------------

Sets the enabled state.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HotKey](component_HotKey.md) | [5.4](newinversion54.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "HotKey.SetEnabled"; HotKeyRef; Value ) 

**MBS**( **"HotKey.SetEnabled";** /\* Sets the enabled state. \*/  
**$HotKeyRef**; /\* The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function.e.g. $hotkey \*/   
**$Value**) /\* The new state. 1 to enable, 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HotKeyRef | The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. | $hotkey |
| Value | The new state. 1 to enable, 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets the enabled state.  
The plugin does not trigger script if hotkey is temporary disabled.  
### Examples

Set state:

 MBS ( "HotKey.SetEnabled"; "35001"; 0 )  
### See also

- [HotKey.GetEnabled](HotKeyGetEnabled.md)
- [HotKey.Register](HotKeyRegister.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.4pr4](https://www.mbsplugins.de/archive/2015-10-29/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th October 2015 , last changed 29th October 2015

  
[HotKey.Register](HotKeyRegister.md) - [HotKey.SetEvaluate](HotKeySetEvaluate.md)

[HTML Version](HotKeySetEnabled.shtml)