Updates
This commit is contained in:
parent
e94f3a189c
commit
3967e285b6
27 changed files with 63 additions and 0 deletions
BIN
obs/ResolutionUtils/MonitorSwitcher.exe
Normal file
BIN
obs/ResolutionUtils/MonitorSwitcher.exe
Normal file
Binary file not shown.
1
obs/ResolutionUtils/Normal.xml
Normal file
1
obs/ResolutionUtils/Normal.xml
Normal file
File diff suppressed because one or more lines are too long
16
obs/ResolutionUtils/Py/OBS.py
Normal file
16
obs/ResolutionUtils/Py/OBS.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from subprocess import Popen
|
||||
from pathlib import Path
|
||||
|
||||
cwd = Path(__file__).parent.parent.resolve()
|
||||
print(f"cwd={cwd}")
|
||||
|
||||
def on_event(event):
|
||||
if event == obspython.OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN:
|
||||
proc = Popen(["MonitorSwitcher.exe", "-load:Normal.xml"], cwd=cwd, shell=True)
|
||||
_ = proc.communicate()
|
||||
|
||||
|
||||
def script_load(settings):
|
||||
obspython.obs_frontend_add_event_callback(on_event)
|
||||
proc = Popen(["MonitorSwitcher.exe", "-load:Recording.xml"], cwd=cwd, shell=True)
|
||||
_ = proc.communicate()
|
||||
BIN
obs/ResolutionUtils/Py/__pycache__/OBS.cpython-310.pyc
Normal file
BIN
obs/ResolutionUtils/Py/__pycache__/OBS.cpython-310.pyc
Normal file
Binary file not shown.
1
obs/ResolutionUtils/Recording.xml
Normal file
1
obs/ResolutionUtils/Recording.xml
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue