jarodfedele
New Member
Hi there,
I would like to control my OBS scenes via hotkeys that are simulated via virtual keyboard inputs in Python. Right now I'm attempting to use pynput. Everything works normally except the keypresses don't seem to actually communicate to OBS.
For example, whether OBS is in or out of focus, I can manually type Ctrl+Alt+1 and it will switch my scene for me. If I run Ctrl+Alt+1 through pynput, the command actually occurs and the keys are 'pressed' as evident in other applications, but OBS doesn't seem to recognize that happening.
Any ideas, or any alternative key-pressing systems in Python that would enable me to activate hotkeys?
I would like to control my OBS scenes via hotkeys that are simulated via virtual keyboard inputs in Python. Right now I'm attempting to use pynput. Everything works normally except the keypresses don't seem to actually communicate to OBS.
For example, whether OBS is in or out of focus, I can manually type Ctrl+Alt+1 and it will switch my scene for me. If I run Ctrl+Alt+1 through pynput, the command actually occurs and the keys are 'pressed' as evident in other applications, but OBS doesn't seem to recognize that happening.
Any ideas, or any alternative key-pressing systems in Python that would enable me to activate hotkeys?