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
keyIdObsKey?The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h
keyModifierKeyModifier?Key modifiers to apply
cancellationTokenCancellationTokenA 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.