mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2025-02-22 01:35:18 +00:00
Fix trigger_hot_key_by_name() method
This commit is contained in:
parent
d2f2926334
commit
633093ead4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user