HotKey.SetTag
-------------

Sets the tag 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.SetTag"; HotKeyRef ) 

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

### Parameters

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

### Result

Returns OK or error.

### Description

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

Register new hotkey with tag:

 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.SetTag"; $HotKeyID ; "Search People")\]  
### See also

- [HotKey.GetTag](HotKeyGetTag.md)
- [HotKey.Register](HotKeyRegister.md)
- [HotKey.SetName](HotKeySetName.md)
- [HotKey.SetScript](HotKeySetScript.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 21st October 2015

  
[HotKey.SetScriptWorkspaceOnly](HotKeySetScriptWorkspaceOnly.md) - [HotKey.Unregister](HotKeyUnregister.md)

[HTML Version](HotKeySetTag.shtml)