Question / Help Start OBS, and auto-select an option in the "already running" popup

tscizzlebg

New Member
I want a script of mine to also launch OBS. This script can be run multiple times, so there's a good chance it gets run at some point and OBS is already open.

When launching OBS, if OBS is already open then it pops up a dialog saying "OBS is already running! [...]" with button options "Launch Anyway" and "Cancel".

Is it possible to either auto-select "Cancel", or set a default behavior of "do nothing if OBS is already running"? Perhaps a Command Line option.

Thanks!
Tscizzlebg
 

tscizzlebg

New Member
I see that there's the Command Line option "--multi", which is close but it's flipped. It makes no warning and DOES start OBS anyway. I want no warning and DON'T start OBS anyway.
 

tscizzlebg

New Member
Code:
tasklist /FI "IMAGENAME eq obs64.exe" 2>NUL | find /I /N "obs64.exe">NUL
if "%ERRORLEVEL%"=="0" echo Program is running
(from this question that's not about OBS, just programs in general: https://stackoverflow.com/a/1329790/3391108)

This should work for me, but it's mainly only helpful if you're creating a batch script anyway. Having an OBS built-in option would be cleaner.
 

FerretBomb

Active Member
The example given is roughly what I use for my own startup scripts to avoid double-starting all of my streaming support apps. Having it standardized as a wrapper outside the program allows for more modular coding. The only checks OBS does to see if it's running is to avoid interfering with itself, and alert the user if it is already in the event of a blind process freeze.
 
Top