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
---
<vmix>
<version>[login to view URL]</version>
<edition>4K</edition>
<preset>D:\Bitpod\Alex's tests\API test\API [login to view URL]</preset>
<inputs>
<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>
<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"/>
</input>
</inputs>
<overlays>
<overlay number="1"/>
<overlay number="2"/>
<overlay number="3"/>
<overlay number="4"/>
<overlay number="5"/>
<overlay number="6"/>
</overlays>
<preview>1</preview>
<active>1</active>
<fadeToBlack>False</fadeToBlack>
<transitions>
<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"/>
</transitions>
<recording>False</recording>
<external>False</external>
<streaming>False</streaming>
<playList>False</playList>
<multiCorder>False</multiCorder>
<fullscreen>True</fullscreen>
<audio>
<master volume="100" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
</audio>
</vmix>
---
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.
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 om 2 dager
5,0 (1540 omtaler)
8,0
8,0
6 frilansere byr i gjennomsnitt £93 GBP for denne jobben
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
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
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 do it.
I 'll do my best till you satisfy if you want me.
Contact me please.
Thank you.
Yang L.
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