Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: quarantechno Hey, the last weeks i Looked for a Recording automation but im not realy good in scripting and found not the solution there i looked for. Maybe you could help me?
Step 1 Check a Input with 2 Text cherakters. Name.Text The name of an input or retrieve from a title for example ? Yes is possible, there are examples to adapt from in this thread ! Quote: Step 2 Write this Characters down in my Recorder Pathfile with a Seperator between thes Names
one can not put Write this Characters down in my Recorder Pathfile from a script, will have to rename the recording after the recording stops Quote: Step 3 Start the Recording
one can start a recording. Check the shortcut reference list , thise are the same function usable within a script Quote: Step 4 if the datasource of the Character from Step 1 Changed and the Recording is Stoped Start by Step1
Yup can do that too, check like step 1 and compare if there is a difference to initiate a next step ( or not) Yes but need to change the process logic/order a bit
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/21/2020(UTC) Posts: 3 Location: Trier Thanks: 2 times
|
Originally Posted by: doggy Originally Posted by: quarantechno Hey, the last weeks i Looked for a Recording automation but im not realy good in scripting and found not the solution there i looked for. Maybe you could help me?
Step 1 Check a Input with 2 Text cherakters. Name.Text The name of an input or retrieve from a title for example ? Yes is possible, there are examples to adapt from in this thread ! i got ah Title gtzip tehre are Team1.text and team2.text. These Information i need to get. Quote: Step 2 Write this Characters down in my Recorder Pathfile with a Seperator between thes Names
one can not put Write this Characters down in my Recorder Pathfile from a script, will have to rename the recording after the recording stops did i understand it right, that i couldn automaticly past the Team Texts in the path? Thats the Mainfeature i'm looking for :P The other option did i found and i Think i could connect all together. Quote: Step 3 Start the Recording
one can start a recording. Check the shortcut reference list , thise are the same function usable within a script Quote: Step 4 if the datasource of the Character from Step 1 Changed and the Recording is Stoped Start by Step1
Yup can do that too, check like step 1 and compare if there is a difference to initiate a next step ( or not) Yes but need to change the process logic/order a bit i got a little hope, that someone could script me this feature completle, because i don't understand the diffrent Function option in Vmix exactly.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: quarantechno Hey, the last weeks i Looked for a Recording automation but im not realy good in scripting and found not the solution there i looked for. ?
How did you look and where ? if one googles "vmix renaming recordings" the result is multiple mentions to vMix forum post for this Is why this thread was posted with lots of examples (amongst other posts) to try out in order to learn scripting . same for using shortcuts , try and learn to understand pls Quote: i got ah Title gtzip tehre are Team1.text and team2.text. These Information i need to get.
There are examples here that retrieve exactly the information one could need for use in a script Quote: did i understand it right, that i couldn automaticly past the Team Texts in the path? Thats the Mainfeature i'm looking for :P The other option did i found and i Think i could connect all together.
again no , can NOT name the recording file with a function so same answer as before "will have to rename the recorded file AFTER the recording stops" Quote: i got a little hope, that someone could script me this feature completle,
Of course LOL. A custom script ;-) the logic you are looking for: stop the recording (or let the script check if recording has actually stopped before proceeding) read the data needed (name from within a title) search for the last recorded file ( example in the knowledge base) rename or copy that found file named with the data retrieved before Step 4 can be added (check change of name within the title) for extra functionality starting the renaming process for extra safety build in a process to check if renamed file allready exists to add a number to the name for example to avoid erasing the previous exsisitng recording with the same name
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/21/2020(UTC) Posts: 3 Location: Trier Thanks: 2 times
|
ah, nice thanks for your Help. Now i get the Logic i needed. Sometimes there are the Simple things :)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/9/2023(UTC) Posts: 3 Location: Antwerp Thanks: 1 times
|
Hi everyone,
I'm very new to scripting for vMix (and scripting in general).
I'm looking for a script that writes the current recordingtime to a text document (or logfile) whenever a certain text value changes. And it would be even better if it also writes the new text value next to the recordingtime.
I allready tried this: Function=WriteDurationToRecordingLog&Input=brugge-agendapunten.gtzip&Value=&SelectedName=TextBlock1.Text&Index=0
But i don't know what the Value should be...
Many thanks in regards.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: JasperHendrickx Hi everyone,
I'm very new to scripting for vMix (and scripting in general).
I'm looking for a script that writes the current recordingtime to a text document (or logfile) whenever a certain text value changes. And it would be even better if it also writes the new text value next to the recordingtime.
I allready tried this: Function=WriteDurationToRecordingLog&Input=brugge-agendapunten.gtzip&Value=&SelectedName=TextBlock1.Text&Index=0
But i don't know what the Value should be...
Many thanks in regards. Don't mix function into one another and consider using vb.net as your scripting . have a browse through this entire post(subject) The recording time itself can also be pulled from the API XML as can the text value
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/9/2023(UTC) Posts: 3 Location: Antwerp Thanks: 1 times
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: JasperHendrickx The scripts need to poll on a regular basis (loop) the text value and if changed (no same s before as there is no trigger for this available) use tha new value for your WriteDurationToRecordingLog function Overal it would be better to write the info to regular txt file to avoid having to extract the result from the log file see bfore in this thread https://forums.vmix.com/...ng-for-Dummies#post81326 for writing to a custom file fully automated logic ( continuos running script): do while check text value in title from api xml if changed check recording time from API XML; write info to a file loop
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/19/2022(UTC) Posts: 3 Location: Austin, TX Thanks: 1 times
|
Hello,
I wanted to see if anyone could help me out with a script I'm trying to troubleshoot. I've gotten this far with the help of this thread + ChatGPT but only have a baseline understanding of code (not a coder myself).
Here's what I'm trying to do. I have a Data Source feeding into a title input named "title" from a Google Sheet. This Data Source is essentially pulling a cell that is a sum / total counting up as things are added to my Google Sheets as a running total. I want my script to continually run / monitor this input until it reaches the value of 10,000. At 10,000 I want it to trigger an overlay with a video file, and then end once the value is over 10,050.
The Script currently saves okay, and runs but it never triggers the overlay, and it also does not end when the value gets above 10,050. I'm unsure if the issue is how I'm writing the Input.Find command, pulling in the title input and its subsequent Message.text text (which is where the data source is populating) or what. All I know is the issue seems to be in the script not recognizing when the value is updating. I also attempted this with a different title input that was not linked to a Data Source and that too did not work.
Here's my code. Any help is much appreciated!
Do Dim value as String = Input.Find("title").text("Message.Text")
If Not String.IsNullOrEmpty(value) AndAlso CInt(value) = 10000 Then API.Function("OverlayInput1In", Input:="win") Exit Do ' Exit the loop when the condition is met End If
' Sleep for a short duration to avoid excessive CPU usage Sleep(1000) ' Sleep for 1 second
Loop While True ' Continue looping indefinitely Thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/23/2020(UTC) Posts: 170 Location: Wichita Thanks: 10 times Was thanked: 24 time(s) in 20 post(s)
|
Originally Posted by: justinheatindex Hello,
I wanted to see if anyone could help me out with a script I'm trying to troubleshoot. I've gotten this far with the help of this thread + ChatGPT but only have a baseline understanding of code (not a coder myself).
Here's what I'm trying to do. I have a Data Source feeding into a title input named "title" from a Google Sheet. This Data Source is essentially pulling a cell that is a sum / total counting up as things are added to my Google Sheets as a running total. I want my script to continually run / monitor this input until it reaches the value of 10,000. At 10,000 I want it to trigger an overlay with a video file, and then end once the value is over 10,050.
The Script currently saves okay, and runs but it never triggers the overlay, and it also does not end when the value gets above 10,050. I'm unsure if the issue is how I'm writing the Input.Find command, pulling in the title input and its subsequent Message.text text (which is where the data source is populating) or what. All I know is the issue seems to be in the script not recognizing when the value is updating. I also attempted this with a different title input that was not linked to a Data Source and that too did not work.
Here's my code. Any help is much appreciated!
Do Dim value as String = Input.Find("title").text("Message.Text")
If Not String.IsNullOrEmpty(value) AndAlso CInt(value) > 10050 Then API.Function("OverlayInput1In", Input:="win") Exit Do ' Exit the loop when the condition is met End If
' Sleep for a short duration to avoid excessive CPU usage Sleep(1000) ' Sleep for 1 second
Loop While True ' Continue looping indefinitely Thank you I changed the condition and the terminal value since you said you wanted greater than 10,050 and yet was checking for exactly equal to 10,000 which means the script would have to catch it at exactly equal to the terminal value otherwise it would continue to run long after the terminal value was reached.
|
2 users thanked Roy Sinclair for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: JasperHendrickx can be started before a recordng is initiated or in combination with startrecording shortcut (same for stopping) RecLogData.jpg (128kb) downloaded 1 time(s).
|
|
|
|
Rank: Member
Groups: Registered
Joined: 10/3/2018(UTC) Posts: 12 Thanks: 4 times
|
Hi, there. I have tried numerous times to Send text Box content form vb.net to vMix , whereas I did not achieved what I want to. I would like to SEND Text Box content(typed by operator) just by clicking on a Button to vMix (added Title, SelectedName) Hope someone will help me with that example.PNG (7kb) downloaded 0 time(s). VB.net.PNG (5kb) downloaded 0 time(s).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: Mr.Shamil Hi, there. I have tried numerous times to Send text Box content form vb.net to vMix , whereas I did not achieved what I want to.
I would like to SEND Text Box content(typed by operator) just by clicking on a Button to vMix (added Title, SelectedName)
Hope someone will help me with that
ANd how/what did you try? Did you tell the button what to do like sending a httprequest with a vMix function of the textbox content?
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 10/3/2018(UTC) Posts: 12 Thanks: 4 times
|
Originally Posted by: doggy Originally Posted by: Mr.Shamil Hi, there. I have tried numerous times to Send text Box content form vb.net to vMix , whereas I did not achieved what I want to.
I would like to SEND Text Box content(typed by operator) just by clicking on a Button to vMix (added Title, SelectedName)
Hope someone will help me with that
ANd how/what did you try? Did you tell the button what to do like sending a httprequest with a vMix function of the textbox content? Well, I tired to send HTTP request wwith GET method it was successful , was able to send static text , whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: Mr.Shamil whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
Assume you wan the text typed in the textbox to be send to a vMix title. reading the textbox content and put it in a variable or put the result into another operation (like sending it to vMix) is very basic vb.net stuff . One litterally gets hundreds of results when one googles "textbox vb.net" and many examlpes of what one can do with the textbox content . can not understand your searching didnt help you While one can use the same language ( vb.net) this thread is about using it within vMix scripting, not visual studio form creations etc .One can not always do what the other can and vica versa
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 10/3/2018(UTC) Posts: 12 Thanks: 4 times
|
Originally Posted by: doggy Originally Posted by: Mr.Shamil whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
Assume you wan the text typed in the textbox to be send to a vMix title. reading the textbox content and put it in a variable or put the result into another operation (like sending it to vMix) is very basic vb.net stuff . One litterally gets hundreds of results when one googles "textbox vb.net" and many examlpes of what one can do with the textbox content . can not understand your searching didnt help you While one can use the same language ( vb.net) this thread is about using it within vMix scripting, not visual studio form creations etc .One can not always do what the other can and vica versa Thanks for your respond. That is correct , as early mentioned I would like to accomplish integration vMix with VB.net so as to the text box which will be filled with texts by operator will be sent to a specific field of titile in vMix. Actually, I have found numerous videos and was able to test them , and one main thing is that I was not able to integrate vMix with VB.net to accomplish mentioned procedures. Thanks for your time.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: Mr.Shamil Originally Posted by: doggy Originally Posted by: Mr.Shamil whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
Assume you wan the text typed in the textbox to be send to a vMix title. reading the textbox content and put it in a variable or put the result into another operation (like sending it to vMix) is very basic vb.net stuff . One litterally gets hundreds of results when one googles "textbox vb.net" and many examlpes of what one can do with the textbox content . can not understand your searching didnt help you While one can use the same language ( vb.net) this thread is about using it within vMix scripting, not visual studio form creations etc .One can not always do what the other can and vica versa Thanks for your respond. That is correct , as early mentioned I would like to accomplish integration vMix with VB.net so as to the text box which will be filled with texts by operator will be sent to a specific field of titile in vMix. Actually, I have found numerous videos and was able to test them , and one main thing is that I was not able to integrate vMix with VB.net to accomplish mentioned procedures. Thanks for your time. There is an example of this on the first page of this thread ! Code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim client As WebRequest = WebRequest.Create("http://127.0.0.1:8088/api/?Function=SetText&Input=Title.gtzip&SelectedName=Headline.Text&Value=" & TextBox1.Text)
Dim response As WebResponse = client.GetResponse()
response.Close()
End Sub
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 10/3/2018(UTC) Posts: 12 Thanks: 4 times
|
Originally Posted by: doggy Originally Posted by: Mr.Shamil Originally Posted by: doggy Originally Posted by: Mr.Shamil whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
Assume you wan the text typed in the textbox to be send to a vMix title. reading the textbox content and put it in a variable or put the result into another operation (like sending it to vMix) is very basic vb.net stuff . One litterally gets hundreds of results when one googles "textbox vb.net" and many examlpes of what one can do with the textbox content . can not understand your searching didnt help you While one can use the same language ( vb.net) this thread is about using it within vMix scripting, not visual studio form creations etc .One can not always do what the other can and vica versa Thanks for your respond. That is correct , as early mentioned I would like to accomplish integration vMix with VB.net so as to the text box which will be filled with texts by operator will be sent to a specific field of titile in vMix. Actually, I have found numerous videos and was able to test them , and one main thing is that I was not able to integrate vMix with VB.net to accomplish mentioned procedures. Thanks for your time. There is an example of this on the first page of this thread ! Code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim client As WebRequest = WebRequest.Create("http://127.0.0.1:8088/api/?Function=SetText&Input=Title.gtzip&SelectedName=Headline.Text&Value=" & TextBox1.Text)
Dim response As WebResponse = client.GetResponse()
response.Close()
End Sub
oh, eventually, thank for your effort. It worked.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 10/3/2018(UTC) Posts: 12 Thanks: 4 times
|
Originally Posted by: doggy Originally Posted by: Mr.Shamil Originally Posted by: doggy Originally Posted by: Mr.Shamil whereas I have searched for Text Box function but was not able , is it possible to carry out it ?
Assume you wan the text typed in the textbox to be send to a vMix title. reading the textbox content and put it in a variable or put the result into another operation (like sending it to vMix) is very basic vb.net stuff . One litterally gets hundreds of results when one googles "textbox vb.net" and many examlpes of what one can do with the textbox content . can not understand your searching didnt help you While one can use the same language ( vb.net) this thread is about using it within vMix scripting, not visual studio form creations etc .One can not always do what the other can and vica versa Thanks for your respond. That is correct , as early mentioned I would like to accomplish integration vMix with VB.net so as to the text box which will be filled with texts by operator will be sent to a specific field of titile in vMix. Actually, I have found numerous videos and was able to test them , and one main thing is that I was not able to integrate vMix with VB.net to accomplish mentioned procedures. Thanks for your time. There is an example of this on the first page of this thread ! Code: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim client As WebRequest = WebRequest.Create("http://127.0.0.1:8088/api/?Function=SetText&Input=Title.gtzip&SelectedName=Headline.Text&Value=" & TextBox1.Text)
Dim response As WebResponse = client.GetResponse()
response.Close()
End Sub
The code you have given worked , thanks. Sorry for taking your time. I was bewildered again , I would like to make Second Text Box (Text.Box2) and integrate it with Input=Title.gtzip. For example, I have Title.gtzip and Breaking.gtzip both with Headline.Text , I would like to add Text.Box2 so when I type Breaking.gtzip on it will change to another title. Dim client As WebRequest = WebRequest.Create("http://192.168.13.167:8088/api/?Function=SetText&Input=" & TextBox2 SelectedName=Headline.Text&Value=" & TextBox1.Text) it seemed I have done it incorrectly
|
|
|
|
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