vMix Forums
»
General
»
General Discussion
»
Capture values and change timer
Rank: Newbie
Groups: Registered
Joined: 2/24/2021(UTC) Posts: 8 Location: São Paulo Thanks: 9 times Was thanked: 1 time(s) in 1 post(s)
|
I'm trying to capture these values and add to the timer does anyone have an idea how to do it?
dim txA as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA01") dim txB as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA02") dim txC as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA03")
API.Function ("ChangeCountdown",Input:=1,Value:="txA:txB:txC")
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Fabiano I'm trying to capture these values and add to the timer does anyone have an idea how to do it?
dim txA as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA01") dim txB as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA02") dim txC as string = Input.Find("vMIX_VARIAVEIS.xaml").Text("COUNTHORA03")
API.Function ("ChangeCountdown",Input:=1,Value:="txA:txB:txC") slapping something together what looks like code is not going to work I advice you to do some research on vb.net programming the timer is one string like 00:00:00 In your case based on the little information given you need to build a string from your element you retrieved first before one can use it as a value for the function ( or build the string within the function Value detail) As it stands you value is exactly this: txA:txB:txC instead of something like 02:15:32 ( if txA=02 ; txB = 15 and txC = 32)
|
|
|
|
Rank: Member
Groups: Registered
Joined: 7/6/2020(UTC) Posts: 15 Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
What values are you actually trying to capture??
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Kristoph What values are you actually trying to capture?? Pretty obvious ;-) 3 different string values from a title to combine into a (time)string for a countdownchange but missing the concept of Concatenation of string variables with strings into one string. Hence the advice to do some research on vb.net programming (giving a fish versus teaching to fish).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/4/2021(UTC) Posts: 308 Thanks: 8 times Was thanked: 40 time(s) in 35 post(s)
|
Originally Posted by: doggy giving a fish versus teaching to fish In this scenario, you're doing neither.
|
1 user thanked WaltG12 for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 7/6/2020(UTC) Posts: 15 Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
Mate not sure if you realise it, but 90% of your answers on this forum start with rude comments. Sort it out. KMA Originally Posted by: doggy Originally Posted by: Kristoph What values are you actually trying to capture?? Pretty obvious ;-) 3 different string values from a title to combine into a (time)string for a countdownchange but missing the concept of Concatenation of string variables with strings into one string. Hence the advice to do some research on vb.net programming (giving a fish versus teaching to fish).
|
1 user thanked Kristoph for this useful post.
|
|
|
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: WaltG12 Originally Posted by: doggy giving a fish versus teaching to fish In this scenario, you're doing neither. Concatenation in VB is done using "+" So txA + txB + txC will concatenate those three variables.
|
1 user thanked Roy Sinclair for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/3/2022(UTC) Posts: 1 Location: 3067 Wood Street Saginaw, MI 48607
|
3 different string values from a title to combine into a (time)string for a countdownchange but missing the concept of Concatenation of string variables with strings into one string.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Travis9577 3 different string values from a title to combine into a (time)string for a countdownchange but missing the concept of Concatenation of string variables with strings into one string. Same link as above (see step 3) https://thedeveloperblog.com/vbnet/string-concat-vbnet
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/24/2021(UTC) Posts: 8 Location: São Paulo Thanks: 9 times Was thanked: 1 time(s) in 1 post(s)
|
excuse my ignorance, I graduated in programming technician around the year 1999 but I didn't work in the area, I did it because I like programming
But I don't work in the area, I'm in civil engineering, in the pandemic I moved to a company that uses Vmix, so I've already done a lot of automation with the little knowledge I have and with the help here.
I studied the topics, which led me to do a lot of things.
I'm not looking for FISH, I'm asking for help to solve a problem and an idea that I had here at work, that's all.
If anyone can help, great, I'm grateful, but if you don't have the availability or desire, just say nothing, sending me to study programming is not helping at all.
I AM VERY GRATEFUL TO EVERYONE WHO TRYING TO HELP...
THANK YOU VERY MUCH
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/24/2021(UTC) Posts: 8 Location: São Paulo Thanks: 9 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Kristoph What values are you actually trying to capture?? I can capture the values that are in a gt title, example: txA=01 txB=15 txC=00 What I need is to take these values and transform into txA:txB:txC = 01:15:00 Take these values and format as time I can capture these values, I just can't join them in time format
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/24/2021(UTC) Posts: 8 Location: São Paulo Thanks: 9 times Was thanked: 1 time(s) in 1 post(s)
|
Consegui. Obrigado pela atenção de todos
I achieved. Thank you all for the attention
API.Function("SetText",Input:="65",SelectedName:="Message",Value:=txA+":" + txB+":" + txC)
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Capture values and change timer
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