From 5b2bc6e13a0562a404d5bd11c4f0277332054ae9 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 27 Jul 2022 23:54:46 +0100 Subject: [PATCH] update version in hotkey example. add hotkey 0 --- examples/hotkeys/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/hotkeys/__main__.py b/examples/hotkeys/__main__.py index 5ede72b..b7b4a72 100644 --- a/examples/hotkeys/__main__.py +++ b/examples/hotkeys/__main__.py @@ -20,7 +20,10 @@ class Observer: def version(): - print(req_cl.get_version()) + resp = req_cl.get_version() + print( + f"Running OBS version:{resp.obs_version} with websocket version:{resp.obs_web_socket_version}" + ) def set_scene(scene, *args): @@ -32,6 +35,7 @@ if __name__ == "__main__": ev_cl = obs.EventClient() observer = Observer(ev_cl) + keyboard.add_hotkey("0", version) keyboard.add_hotkey("1", set_scene, args=("START",)) keyboard.add_hotkey("2", set_scene, args=("BRB",)) keyboard.add_hotkey("3", set_scene, args=("END",))