From 633093ead4191778266986889c9f2acfbed25b71 Mon Sep 17 00:00:00 2001 From: Zynthasius39 Date: Sat, 8 Feb 2025 17:59:45 +0400 Subject: [PATCH] Fix trigger_hot_key_by_name() method --- obsws_python/reqs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/obsws_python/reqs.py b/obsws_python/reqs.py index 9c14895..f9f60e6 100644 --- a/obsws_python/reqs.py +++ b/obsws_python/reqs.py @@ -138,17 +138,19 @@ class ReqClient: get_hotkey_list = get_hot_key_list - def trigger_hot_key_by_name(self, hotkeyName): + def trigger_hot_key_by_name(self, hotkeyName, contextName=None): """ Triggers a hotkey using its name. For hotkey names See GetHotkeyList :param hotkeyName: Name of the hotkey to trigger :type hotkeyName: str + :param contextName: Name of context of the hotkey to trigger + :type contextName: str, optional """ - payload = {"hotkeyName": hotkeyName} + payload = {"hotkeyName": hotkeyName, "contextName": contextName} self.send("TriggerHotkeyByName", payload) trigger_hotkey_by_name = trigger_hot_key_by_name