Scripting and automation, Vb.net scripting, Scripting – vMix Live Production Software Pro User Manual

Page 177

Advertising
background image

vMix User Guide

177 / 208

below are locked:

·

vMix Close Button

·

Input Close Button

·

Open Preset

·

Last Preset

·

Recording Stop

·

Streaming Stop

·

External Output Stop

·

MultiCorder Stop

Scripting and Automation

4K

and

Pro

editions of vMix include powerful programming capabilities through the Scripting feature.

Consider this is a highly advanced version of Shortcuts, instead of a simple function assigned to a keyboard
key
you can assign any code you can think of including tasks like downloading internet content and assigning it
to a title.

The process goes like this:

1. Create a Script from the Scripting tab in Settings and assign it a unique Name.

2. Create a Shortcut and select "ScriptStart" as the function and type in the name of the script in the Script
Name box.

Scripting supports two different languages when writing your script:

VB.NET Scripting

Web Scripting

VB.NET Scripting

vMix Scripting supports the powerful and easy to understand VB.NET language when writing your script.

Hello World Example

Consider the following vMix take on the infamous "Hello World" application:

Input.Find("NewsHD.xaml").Text("Headline") = "Hello World!"

Or put another way:

dim i = Input.Find("NewsHD.xaml")
i.Text("Headline") = "Hello World!"

Advertising