vMix Forums
»
General
»
General Discussion
»
Increment Titler Value in Scripting
Rank: Member
Groups: Registered
Joined: 11/28/2018(UTC) Posts: 10 Location: Boston
|
I would like to setup in Scripting a script that will read the current value of a field in an XAML, Increment that value by 1, then output the incremented value back to the XAML.
Basically I am trying to use my Stream Deck to increment the value in a field when someone scores a point. Once I know the basic syntax of incrementing I will be able to setup subtraction of points and resetting of points.
I did try to search for a similar topic but didn't find anything. I know that I can use UTC to do this as well as but I want to be able to use the Stream Deck with scripts.
Thank you in advance for a solution.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,227 Location: Belgium Thanks: 293 times Was thanked: 956 time(s) in 791 post(s)
|
Originally Posted by: mediadisconnect Basically I am trying to use my Stream Deck to increment the value in a field when someone scores a point.
+=1 to increase a value by one in aa xaml text field for streamdeck use a website api command http://localhost:8088/API/?Function=Settext......
|
|
|
|
Rank: Member
Groups: Registered
Joined: 11/28/2018(UTC) Posts: 10 Location: Boston
|
doggy,
I have tried:
Function=SetText&Input=BasketBall.xaml&SelectedName=HomeScore&Value+=1 and Function=SetText&Input=BasketBall.xaml&SelectedName=HomeScore&Value=+1
but neither work. What am I missing?
Thanks.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 569 Location: Manitoba Thanks: 115 times Was thanked: 313 time(s) in 178 post(s)
|
Try adding the extra "=" sign after value:
Function=SetText&Input=BasketBall.xaml&SelectedName=HomeScore&Value=+=1
The value must also be URLEncoded.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,227 Location: Belgium Thanks: 293 times Was thanked: 956 time(s) in 791 post(s)
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 11/28/2018(UTC) Posts: 10 Location: Boston
|
Thank you doggy. Your link showed me how to accomplish my goal in a script.
Thank you DWAM for showing me how to accomplish this in a Shortcut.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,227 Location: Belgium Thanks: 293 times Was thanked: 956 time(s) in 791 post(s)
|
Originally Posted by: mediadisconnect Thank you doggy. Your link showed me how to accomplish my goal in a script.
Thank you DWAM for showing me how to accomplish this in a Shortcut. And if you choose to use the Stream Deck either use the website configuration or the hotkey configuration if you have created a shortcut (mind you that with a shortcut vMix has to be the active window but that cab be fixed (open vMix)with the multi action option)
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Increment Titler Value in Scripting
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