mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
update version in hotkey example.
add hotkey 0
This commit is contained in:
parent
13a0694190
commit
5b2bc6e13a
@ -20,7 +20,10 @@ class Observer:
|
|||||||
|
|
||||||
|
|
||||||
def version():
|
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):
|
def set_scene(scene, *args):
|
||||||
@ -32,6 +35,7 @@ if __name__ == "__main__":
|
|||||||
ev_cl = obs.EventClient()
|
ev_cl = obs.EventClient()
|
||||||
observer = Observer(ev_cl)
|
observer = Observer(ev_cl)
|
||||||
|
|
||||||
|
keyboard.add_hotkey("0", version)
|
||||||
keyboard.add_hotkey("1", set_scene, args=("START",))
|
keyboard.add_hotkey("1", set_scene, args=("START",))
|
||||||
keyboard.add_hotkey("2", set_scene, args=("BRB",))
|
keyboard.add_hotkey("2", set_scene, args=("BRB",))
|
||||||
keyboard.add_hotkey("3", set_scene, args=("END",))
|
keyboard.add_hotkey("3", set_scene, args=("END",))
|
||||||
|
Loading…
Reference in New Issue
Block a user