HotKey.SetName
--------------

Sets the name of a hotkey.

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

MBS( "HotKey.SetName"; HotKeyRef; Name ) 

**MBS**( **"HotKey.SetName";** /\* Sets the name of a hotkey. \*/  
**$HotKeyRef**; /\* The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function.e.g. $hotkey \*/   
**$Name**) /\* The new name. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HotKeyRef | The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. | $hotkey |
| Name | The new name. |  |

### Result

Returns OK or error.

### Description

Sets the name of a hotkey.  
This is just your own name which you can query. The plugin does not use this information.  
### Examples

Register new hotkey with name:

 Set Variable \[$HotKeyID ; Value:MBS ("[HotKey.Register](HotKeyRegister.md)"; "F5"; "shift control")\]  
Set Variable \[$r ; Value:MBS ("[HotKey.SetScript](HotKeySetScript.md)"; $HotKeyID ; Get(FileName); "HotkeyAction")\]  
Set Variable \[$r ; Value:MBS ("HotKey.SetName"; $HotKeyID ; "Search People")\]  
### See also

- [HotKey.GetName](HotKeyGetName.md)
- [HotKey.Register](HotKeyRegister.md)
- [HotKey.SetScript](HotKeySetScript.md)
- [HotKey.SetTag](HotKeySetTag.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 21st October 2015 , last changed 14th June 2022

  
[HotKey.SetLocal](HotKeySetLocal.md) - [HotKey.SetPermanent](HotKeySetPermanent.md)

[HTML Version](HotKeySetName.shtml)