Compare commits

..

No commits in common. "0fe78197fcdca0a833d9696f79fa59d0288c0551" and "935392a0b6bdfca2da765b9482c05d044dca9b71" have entirely different histories.

2 changed files with 14 additions and 14 deletions

View File

@ -138,39 +138,39 @@ class ReqClient:
get_hotkey_list = get_hot_key_list get_hotkey_list = get_hot_key_list
def trigger_hot_key_by_name(self, hotkeyName, contextName=None): def trigger_hot_key_by_name(self, hotkeyName):
""" """
Triggers a hotkey using its name. For hotkey names Triggers a hotkey using its name. For hotkey names
See GetHotkeyList See GetHotkeyList
:param hotkeyName: Name of the hotkey to trigger :param hotkeyName: Name of the hotkey to trigger
:type hotkeyName: str :type hotkeyName: str
:param contextName: Name of context of the hotkey to trigger
:type contextName: str, optional
""" """
payload = {"hotkeyName": hotkeyName, "contextName": contextName} payload = {"hotkeyName": hotkeyName}
self.send("TriggerHotkeyByName", payload) self.send("TriggerHotkeyByName", payload)
trigger_hotkey_by_name = trigger_hot_key_by_name trigger_hotkey_by_name = trigger_hot_key_by_name
def trigger_hot_key_by_key_sequence( def trigger_hot_key_by_key_sequence(
self, keyId, pressShift=None, pressCtrl=None, pressAlt=None, pressCmd=None self, keyId, pressShift, pressCtrl, pressAlt, pressCmd
): ):
""" """
Triggers a hotkey using a sequence of keys. Triggers a hotkey using a sequence of keys.
:param keyId: The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h :param keyId: The OBS key ID to use. See https://github.com/obsproject/obs-studio/blob/master/libobs/obs-hotkeys.h
:type keyId: str :type keyId: str
:param pressShift: Press Shift :param keyModifiers: Object containing key modifiers to apply.
:type pressShift: bool, optional :type keyModifiers: dict
:param pressCtrl: Press CTRL :param keyModifiers.shift: Press Shift
:type pressCtrl: bool, optional :type keyModifiers.shift: bool
:param pressAlt: Press ALT :param keyModifiers.control: Press CTRL
:type pressAlt: bool, optional :type keyModifiers.control: bool
:param pressCmd: Press CMD (Mac) :param keyModifiers.alt: Press ALT
:type pressCmd: bool, optional :type keyModifiers.alt: bool
:param keyModifiers.cmd: Press CMD (Mac)
:type keyModifiers.cmd: bool
""" """

View File

@ -1 +1 @@
version = "1.7.1" version = "1.7.0"