When scene change, execute batch file

Is it possible to run Batch file while changing scene?
I am using HDMI switcher and I want to run batch script to send the command to my HDMI switcher while changing scene.
 

SeiferKinsdale

New Member
Hi Marq! Thanks a lot for this! But can you help me or walk me through what command I should use inorder for me to run a batch file whenever I switch scenes? I'm not sure what command I should input on the command box. Thanks!
 

Marq

New Member
If you want to execute a batch file you have to supply the full path of that batch file as command.

Example 1: executing `C:\Users\Marq\Documents\Downloads\my-script.cmd` for all scene switches:
  • Command: C:\Users\Marq\Documents\Scripts\\my-script.cmd
  • Scene values can be left empty
Example 2: executing different batch files for different scenes
  • Command: SCENE_VALUE
  • Scene1 value: C:\Users\Marq\Documents\Scripts\my-script.cmd
  • Scene2 value: C:\Users\Marq\Documents\Scripts\my-other-script.cmd
 

Phibbit

New Member
This is really great and will hopefully help us a lot.
Just a quick question, when the script executes (on windows) there is a black box appears in front of OBS, presumably this is the script running the executable, so there is no way of hiding this? It's OBS command that I'm running, so maybe I can find a way of addressing the websocket directly though this instead but I'm yet to find that.
Thanks.
 
Top