vMix Forums
»
General
»
General Discussion
»
Need to change an input at 8 pm exactly
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 151 times Was thanked: 75 time(s) in 57 post(s)
|
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 151 times Was thanked: 75 time(s) in 57 post(s)
|
have it fire a script and do anything you want.
|
|
|
|
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?
|
|
|
|
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
|
1 user thanked comporder1 for this useful post.
|
|
|
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 :)
|
|
|
|
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 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 570 Location: Manitoba Thanks: 118 times Was thanked: 313 time(s) in 178 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-Touchscreenscheers, Richard
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Need to change an input at 8 pm exactly
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close