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
cruiseweekTV  
#1 Posted : Tuesday, September 17, 2019 12:00:31 AM(UTC)
cruiseweekTV

Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 75
Location: tampa

Was thanked: 3 time(s) in 1 post(s)
Can anyone help me with a script to change an input at 8 pm exactly, I dont want to use a countdown timer because that means each show I have to time it to the clock and set the exact amount of time till 8 pm and start it at the right moment, I am hoping there is a simple 2 line script that can do this.
stevespaw  
#2 Posted : Tuesday, September 17, 2019 12:08:18 AM(UTC)
stevespaw

Rank: Advanced Member

Groups: Registered
Joined: 3/12/2015(UTC)
Posts: 480
Man
Location: Kansas City, MO USA

Thanks: 149 times
Was thanked: 75 time(s) in 57 post(s)
cruiseweekTV  
#3 Posted : Tuesday, September 17, 2019 12:47:12 AM(UTC)
cruiseweekTV

Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 75
Location: tampa

Was thanked: 3 time(s) in 1 post(s)
Thanks, I loked at that and it MAY work however the transition I am going to is a video and the api for some reason dosnt start the video even if stat on transition in is checked.
stevespaw  
#4 Posted : Tuesday, September 17, 2019 1:10:42 AM(UTC)
stevespaw

Rank: Advanced Member

Groups: Registered
Joined: 3/12/2015(UTC)
Posts: 480
Man
Location: Kansas City, MO USA

Thanks: 149 times
Was thanked: 75 time(s) in 57 post(s)
have it fire a script and do anything you want.
cruiseweekTV  
#5 Posted : Tuesday, September 17, 2019 8:18:22 AM(UTC)
cruiseweekTV

Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 75
Location: tampa

Was thanked: 3 time(s) in 1 post(s)
if I could fire a script I could write the script directly into the scripting tab of vmix. surly this isnt that hard to do?
comporder1  
#6 Posted : Tuesday, September 17, 2019 11:15:22 AM(UTC)
comporder1

Rank: Member

Groups: Registered
Joined: 1/20/2016(UTC)
Posts: 24
Location: USA

Thanks: 3 times
Was thanked: 3 time(s) in 3 post(s)
You can do this with windows task scheduler and a VBScript to call any API function. Your script should look like this.....

FunctionsToRun.vbs
Code:
On Error Resume Next

Dim o
Set o = CreateObject("MSXML2.XMLHTTP")
o.open "GET", "http://127.0.0.1:8088/api/?Function=ActiveInput&Input=1", False
o.send
o.open "GET", "http://127.0.0.1:8088/api/?Function=StartStreaming", False
o.send

(line 7&8 are just there to show how to add additional API calls)

You can call any of the functions found here: https://www.vmix.com/hel...ex.htm?DeveloperAPI.html . And because the api is call via IP address, the script can run on any computer on the network.

When you create the task in Task Scheduler, add an action to call this Program/Script "%systemroot%\system32\cscript.exe" and then add the path to FunctionsToRun.vbs in Add Arguments like "C:\path to file\FunctionsToRun.vbs". Then in Triggers tab, make the schedule however you like.

Carey
thanks 1 user thanked comporder1 for this useful post.
mjgraves on 9/18/2019(UTC)
cruiseweekTV  
#7 Posted : Tuesday, September 17, 2019 11:51:32 PM(UTC)
cruiseweekTV

Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 75
Location: tampa

Was thanked: 3 time(s) in 1 post(s)
sweet, thanks for that :)
comporder1  
#8 Posted : Wednesday, September 18, 2019 12:07:03 AM(UTC)
comporder1

Rank: Member

Groups: Registered
Joined: 1/20/2016(UTC)
Posts: 24
Location: USA

Thanks: 3 times
Was thanked: 3 time(s) in 3 post(s)
Originally Posted by: cruiseweekTV Go to Quoted Post
sweet, thanks for that :)


No problem.

I sometimes like to know that the script did fire. You can add this VBscipt to the Task....

sendemail.vbs
Code:
Set MyEmail=CreateObject("CDO.Message")

MyEmail.Subject="Videomixer PC Scipt Run"
MyEmail.From="myemail@address.com"
MyEmail.To="myemail@address.com"
MyEmail.TextBody="The videomixer PC has started a script."

MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

'SMTP Server
MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mylocalemail.server.com"

'SMTP Port
MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 

MyEmail.Configuration.Fields.Update
MyEmail.Send

set MyEmail=nothing


This script will not send to a password protected email server. I have a local email server that doesn't require authentication.

Carey
raugert  
#9 Posted : Wednesday, September 18, 2019 8:10:04 AM(UTC)
raugert

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 560
Canada
Location: Manitoba

Thanks: 107 times
Was thanked: 309 time(s) in 176 post(s)
You could do this with the vMix Panel Builder App if you like. Put the appropriate command into a button and set the timer field to 8:00:00 pm. You can add as many buttons as you wish if you want to send other timed commands.

https://forums.vmix.com/...Mac-Windows-Touchscreens

cheers,
Richard
Users browsing this topic
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.