VB.net script to read values from vMix API

The live-streaming software vMix ([login to view URL]) allows more advanced control of the software via an API and the use of limited VB.net (v3.5). The scripts are run from within the software and usually triggered by keyboard shortcuts. You can learn more at [login to view URL] and see a typical XML response at [login to view URL] also see attached file.

I have hacked an existing script to roughly achieve what I need but with limitations


Dim url As String

url = "[login to view URL]"

Dim reader As XmlReader = [login to view URL](url)

[login to view URL]("text")

Dim status As String = [login to view URL]()

if status = "red" Then

[login to view URL]("OverlayInput1", Input:="2") ' just a test to see that is works, other actions will go here

End If


This reads through the following XML



<version>[login to view URL]</version>


<preset>D:\Bitpod\Alex's tests\API test\API [login to view URL]</preset>


<input key="fc170e1d-896e-40eb-a2e0-8cb8220b9682" number="1" type="Xaml" title="[login to view URL]" state="Paused" position="0" duration="0" loop="False" selectedIndex="0">

[login to view URL]

<text index="0" name="Colour">red</text>

<text index="1" name="Shape">square</text>

<image index="0" name="Object"/>


<input key="959aa79b-038c-4b3f-9226-23f41e8969b8" number="2" type="Xaml" title="[login to view URL]" state="Paused" position="0" duration="0" loop="False" selectedIndex="0">

[login to view URL]

<text index="0" name="Message">It works</text>

<text index="1" name="Title"/>




<overlay number="1"/>

<overlay number="2"/>

<overlay number="3"/>

<overlay number="4"/>

<overlay number="5"/>

<overlay number="6"/>






<transition number="1" effect="Fade" duration="500"/>

<transition number="2" effect="Merge" duration="1000"/>

<transition number="3" effect="Cube" duration="1000"/>

<transition number="4" effect="CrossZoom" duration="1000"/>









<master volume="100" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>




The problem with this is that it only looks at the first line '<text index="0" name="Colour">red</text>' and ignores subsequent lines. More importantly it can only have an on/off action rather than if red do this, if blue do that etc.

I require an updated script template to achieve the following:

1. Ignore all the inputs other that do not have the key 'fc170e1d-896e-40eb-a2e0-8cb8220b9682'

2. Only trigger if the element attributes are :

text index="0" name="Colour"

and the element = red

3. Provide a commented template that can run other short subroutines if the element is blue or green etc

4. Provide further examples and comments to instead trigger if:

index="1" name="Shape"

and then run different actions depending on the element i.e. square, round etc

The vMix software is available as a 60 day trial and only runs on a PC, I will need the script testing on the software to make sure it runs ok. Attached is a preset and supporting XAML file for testing. To use, install vMix demo, load preset (you may need to locate the XAML file), create a new script (settings, scripting, Add), call it 'API test' and paste in code at top of page. Press space bar to run the script. If it works (should do in its current basic form) it should toggle the 'It works' message on and off. I can provide more info as needed.

Квалификация: .NET, Архитектура ПО, VB.NET, Visual Basic

Показать больше 160by2 api vb net, add file soap envelope vb net soap api, api desktop vb net, api send sms scheduled date time vb net, api sms vb net, api vb net calling card, asp vb net google maps api, asterisk pbx phone server api vb net, bebo api vb net, bluesoleil api vb net, cad api vb net, collective api vb net, convertir script perl en vb net, text calculation vb net script, vb net mysql read image, vb net save read xml database, vb net xml read save, vb net ocr read text from image, vb net code to call web api, vb.net ocr read text from image

О работодателе:
( 5 отзыв(-а, -ов) ) Ottery St Mary, United Kingdom

ID проекта: #19574296



Hello I have over 9 years of experience with VB.NET including working with external APIs like this one, and I have several virtual machines for testing

£45 GBP за 2 дней(-я)
(1179 отзывов(-а))

9 фрилансеров(-а) в среднем готовы выполнить эту работу за £105


I have read your description and I am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful C/C++/VB programmer. I have +5 years of ex Больше

£150 GBP за 3 дней(-я)
(62 отзывов(-а))

Hello. I 'm expert in "Visual Basic, .NET, Software Architecture, VB.NET" and I have working for 7+ years in this field. I 'm very interest to your project. I have checked your project description carefully and i can d Больше

£150 GBP за 1 день
(75 отзывов(-а))

@@@ No problem .net expert HERO! Please visit [login to view URL] in my profile As you can see my skill in this site I have deep experience of web development and high quality pixel-perfect design in more 7 years Больше

£150 GBP за 3 дней(-я)
(6 отзывов(-а))

Hello, I already doen the same project to get data from an api using .Net & C# , I can do your project too just get in touch to discuss more details. Best Regards Fouad

£20 GBP за 10 дней(-я)
(27 отзывов(-а))

Hi there My name is Carlos and I'm an expert in .Net and sql server. I have been working in software developement for the last 20 years. I have many experience in desktop and web development. Regards

£111 GBP за 10 дней(-я)
(50 отзывов(-а))

Hello. Below are examples of similar work done by me: VB.net application-https://www.freelancer.com.ru/projects/visual-basic/Search-rename-project/details Accurate XML postprocessing- https://www.freelancer.com.ru/pr Больше

£90 GBP за 3 дней(-я)
(14 отзывов(-а))

Hi. Great app writer for your projects. I have writen vb.net scraping app for many years. I am ready to write your project. Thank you for visiting my profile

£80 GBP за 3 дней(-я)
(1 отзыв)

Hi. I have a lot of experience consuming web service and APIs

£150 GBP за 3 дней(-я)
(0 отзывов(-а))