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
mediadisconnect  
#1 Posted : Tuesday, December 25, 2018 5:45:41 AM(UTC)
mediadisconnect

Rank: Member

Groups: Registered
Joined: 11/28/2018(UTC)
Posts: 10
United States
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.
doggy  
#2 Posted : Tuesday, December 25, 2018 6:12:42 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 956 time(s) in 791 post(s)
Originally Posted by: mediadisconnect Go to Quoted Post

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......
mediadisconnect  
#3 Posted : Thursday, December 27, 2018 2:13:02 AM(UTC)
mediadisconnect

Rank: Member

Groups: Registered
Joined: 11/28/2018(UTC)
Posts: 10
United States
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.
DWAM  
#4 Posted : Thursday, December 27, 2018 3:18:13 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
raugert  
#5 Posted : Thursday, December 27, 2018 3:39:57 AM(UTC)
raugert

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 569
Canada
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.
doggy  
#6 Posted : Thursday, December 27, 2018 3:45:57 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 956 time(s) in 791 post(s)
mediadisconnect  
#7 Posted : Thursday, December 27, 2018 3:53:53 AM(UTC)
mediadisconnect

Rank: Member

Groups: Registered
Joined: 11/28/2018(UTC)
Posts: 10
United States
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.
doggy  
#8 Posted : Thursday, December 27, 2018 4:02:08 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 956 time(s) in 791 post(s)
Originally Posted by: mediadisconnect Go to Quoted Post
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)
Users browsing this topic
Guest (4)
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.