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
alsergkir  
#1 Posted : Wednesday, October 14, 2020 6:49:40 PM(UTC)
alsergkir

Rank: Newbie

Groups: Registered
Joined: 10/14/2020(UTC)
Posts: 2

Thanks: 1 times
I'm currently writing a vMix script and in order to monitor what's happening inside I created a title input and dynamically add new text to it.

Since the output code is quite bulky I naturally decided to create a custom function so I can call it anywhere and make my code easier on the eye.

The code for creating custom functions is taken from the Vusial Basic manuals, however, vMix refuses to accept it.

Code:
' Debug output setup
dim debug_output as Object = Input.Find("debug_output")
dim debug_text as String

function debug_print(byval str as String) as Boolean
	debug_text = debug_text & str
	debug_output.Text("Message.Text") = debug_text
	return 1
end function


vMix tells me that "end function" command is not supported.

Is there another way to create custom functions or are they not supported at all?
doggy  
#2 Posted : Wednesday, October 14, 2020 6:57:36 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,057
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
Helpfiles:

Quote:
vMix Scripting supports the majority of VB.NET 2.0 code that will work within a single sub or function.
This means that custom classes and structures are not supported, however you can use the vast majority of the built in base classes in the .NET framework

including the handy System.Net.WebClient for downloading data over the internet.
thanks 1 user thanked doggy for this useful post.
alsergkir on 10/14/2020(UTC)
alsergkir  
#3 Posted : Wednesday, October 14, 2020 7:00:43 PM(UTC)
alsergkir

Rank: Newbie

Groups: Registered
Joined: 10/14/2020(UTC)
Posts: 2

Thanks: 1 times
That's a bummer.

Thanks for the quick reply!
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.