---
title: "setHotKeyFile"
canonical: "https://help.vicon.com/space/Shogun18/13668105/setHotKeyFile"
format: markdown
---
# Description

Sets the file where Shogun Post loads and saves your hot keys.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `setHotKeyFile HotKeyFile [-save]` |

### Arguments

> Macro (scroll-tablelayout)

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `HotKeyFile` | string | yes | Full path of the file whereShogun Post loads and saves your hot keys. Use forward slashes instead of back-slashes for all file paths. |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `save` | 0 | — | — | Causes the current hot keys to be saved to the given file. If not specified, then the hot keys in the file will be loaded. |

## Return value

void

## Examples

```plaintext
// Save your existing hot keys to the root of your C: drive
setHotKeyFile "C:/MyHotKeys.hsl" -save;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [setAutoSaveFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13667971)
- [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668131)
- [setMarkingMenuFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668127)