Thanks bro, this is ugly yet works like a charm. I almost decided to purchase a Windows Laptop just for OBS due to this bug.Having the same issue. Works well for 2-3h and then breaks randomly. Only restarting OBS seems to fix it.
Ugly workaround:
Repeat for each hotkey you need. Bit of a process but seems to work fine and you completely bypass OBS' weird hotkey implementation. On the plus side you can do a lot with the Shortcuts, e.g. I also automatically bring the application I'm screensharing in a certain OBS scene into focus by adding a `Run Apple Script` block to the Shortcut with `tell application "Google Chrome" to activate` which opens Chrome or brings it to the front.
- Install Advanced Scene Switcher plugin
- Open the "Shortcuts" app
- Create a new Shortcut from this: https://www.icloud.com/shortcuts/db567a7da37145309e99b38e5f6e1a9c
- Configure the shortcutView attachment 101958
- Replace the text in between the quotes in the green box (leave the " in place) to a unique value, I use S1, S2 etc to refer to my scenes
- In the red box add your hotkey/shortcut
- Important: Run the shortcut with the yellow button
This creates a hidden file in your home directory- Return to OBS and open the Advanced Scene Switcher Settings
- Ensure "Check conditions every" is set to 300ms. If you make this longer, change the "sleep 0.5" in the Shortcut shell script to be a bit longer (0.5 equals 500ms)
- Create a Macro
- Trigger: If `File` `Local file` (some file) `matches` `VALUE FROM GREEN BOX IN SHORTCUTS WITHOUT QUOTES"`
- Click the Browse button
- A finder window opens
- Navigate to your home directory (the one containing Desktop, Downloads, ...)
- Press cmd+Shift+. on your keyboard, this will show hidden files
- Select the .obstrigger file (which was created when you ran the Shortcut)
- Update the "matches" text to exactly match your Shortcut, pay attention to upper/lower case
- Action:
View attachment 101959
- Configure what you need, I switch scenes or stop the stream