Skip to main content
POST
/
api
/
keyboard
/
hotkey
Press Hotkey Combination
curl --request POST \
  --url http://localhost:4242/{computer_name}/api/keyboard/hotkey \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_num": 1,
  "keys": [
    "ctrl",
    "c"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json

Keys to press simultaneously

keys
string[]
required

List of keys to press simultaneously

Minimum array length: 1
Example:
["ctrl", "c"]
display_num
integer
default:1

Display number to target

Example:

1

Response

Successfully pressed the hotkey combination