Bug Report Did i accidentally stumble over a bug with hotkeys?

hinough

New Member
Hey!
I am currently developing a small hotkey app for a few friends of mine that takes a command from twitch chat and changes scenes based on commands (Via sending virtual keycodes to OBS via PostMessage from user32.dll) and at first I thought I had a bug in my app, but the bug Im encountering is there even if my app is not even running.
What I found is that hotkeys in OBS only work properly in the same session as they are set. After a restart of OBS the hotkeys only work if obs is NOT focused, if I click on OBS and make it the focused and active window, no hotkeys work, not from my app, not from my actual keyboard. The only way Ive found to fix this is to open the settings and rebind the hotkeys. When doing that, even if I just clear and set the exact same hotkey it was already set to, it works properly again, until I restart OBS...
Did I find a bug with it or is this something related to my OBS install?

Im running OBS Studio 20.0.1 (Newest version at time of posting) on Windows 10 1703 15063.608 (Newest non-insider build)
Ive verified that obs "sees" the same keys clicked both when its working properly and when its bugged using spy++ (Part of Visual Studio package) and I cant seem to find any other explanation than that OBS is having some sort of bug in the hotkey system? Seeing as how the bug is there even with my app not even running and using hotkeys straight from my actual keyboard..

edit: Forgot to add. When it is bugged it seems to detect NUMPAD 1 and 1 as the same key even tho they are reported as different keystrokes detected... A-Z hotkeys does not seem to work at all
 

jshannon

New Member
I just started trying to bind hotkeys today. Here's what I've found. The hotkeys will only work if the scene layout window is selected. If you click down in the scenes list or click in the sources list or click any menu options or switch apps you must click on the scene layout window again before the hotkeys work again. It kind of makes the hotkey bindings useless IMO if they don't work across the whole app like I would expect.

Also I found another thing I had to do in Studio Mode: turn off Duplicate Scene in the settings beside the Transition button. If not the hotkeys were turning the layers on and off but not sending those changes immediately to the output, you would still need to switch with a Transition.

I want the hotkeys to act like switching feeds and graphics like a live multicamera tv taping, so I'll keep working through these issues and see if I can figure out a better method.
 
Top