logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
rj_buckley  
#1 Posted : Sunday, October 25, 2020 8:01:23 PM(UTC)
rj_buckley

Rank: Newbie

Groups: Registered
Joined: 10/21/2020(UTC)
Posts: 6
United States
Location: hdq

Using a batch file:

tasklist /FI "IMAGENAME eq isitvMix.EXE" 2>NUL | find /I /N "vMix64.EXE">NUL
if NOT "%ERRORLEVEL%" == "0" start "" "C:\Program Files\Mozilla Firefox\firefox.exe" http://127.0.0.1:8088/api/?Function=OverlayInput3&Input=1

in the Windows scheduler will invoke overlay 3 using Input 1. In my case, input 1 is the video running the Youtube subscribe instructions. I use Firefox, but you can change it to Chrome. It uses the standard Vmix api call. If vMix is not running, nothing will happen. Every time the api is called it leaves open a browser windows with a successful message. I can live with that. It is hard to manage a 1-man production.

For existing presets, you can reorder the inputs by editing the vmix preset file. This will ensure that the correct input always is used. ALWAYS MAKE A COPY OF YOUR PRESET FILE BEFORE EDITING.

rj_buckley  
#2 Posted : Sunday, October 25, 2020 11:39:40 PM(UTC)
rj_buckley

Rank: Newbie

Groups: Registered
Joined: 10/21/2020(UTC)
Posts: 6
United States
Location: hdq

Had to change it to powershell:

$ProcessName = "vMix64"
if((get-process $ProcessName -ErrorAction SilentlyContinue) -ne $Null)
{ Start-Process -PassThru firefox "http://127.0.0.1:8088/api/?Function=OverlayInput3&Input=1" }

On powershell:
You will need to "Set-ExecutionPolicy Unrestricted"

In the Task Scheduler:

The action is Start A Program which is powershell.
In options you put -file "<path to your>.ps1"
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.