Table of Contents

Method TriggerHotkeyByKeySequence

Namespace
OBSStudioClient
Assembly
OBSClient.dll

TriggerHotkeyByKeySequence(ObsKey?, KeyModifier?, CancellationToken)

Triggers a hotkey using a sequence of keys.

public Task TriggerHotkeyByKeySequence(ObsKey? keyId, KeyModifier? keyModifier, CancellationToken cancellationToken = default)

Parameters

keyId ObsKey?

The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h

keyModifier KeyModifier?

Key modifiers to apply

cancellationToken CancellationToken

A token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.

Returns

Task