obsws-python/examples/hotkeys
onyx-and-iris 2de7151739 update README
advises placing config.toml in user home dir
2023-03-09 01:36:21 +00:00
..
__main__.py use context manager in scene_rotate 2022-10-24 22:42:46 +01:00
README.md update README 2023-03-09 01:36:21 +00:00
setup.py add setup.py to hotkeys example 2022-10-26 11:35:16 +01:00

About

Sets up some hotkeys to trigger certain actions. Registers a callback function to notify of scene switch event.

Requires Python Keyboard library.

Use

Simply run the code and press the assigned hotkeys. Press ctrl+enter to exit.

This example assumes the existence of a config.toml, placed in your user home directory:

[connection]
host = "localhost"
port = 4455
password = "mystrongpass"

It also assumes the existence of scenes named START, BRB and END.