vMix Forums
»
General
»
General Discussion
»
VBscript to export replay events
Rank: Member
Groups: Registered
Joined: 9/17/2015(UTC) Posts: 15 Location: Perth
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Anyone have replay events exporting via VBscript ?
I have a script that creates replay events automatically whenever a team score (by simply watching the score and if score increases, script marks a replay event and labels it with the team name).
However if I try to use ExportLastReplayEvent, it doesn't work, or it only works the first time (and I've tried several methods of invoking it/with delays/loops/etc).
Any ideas ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 292 times Was thanked: 955 time(s) in 790 post(s)
|
What's the code for it you have ? do you have the same problem using a direct shortcut (i seem to as in have to press the key a few times) ?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 9/17/2015(UTC) Posts: 15 Location: Perth
Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Code below. If I pop a API.Function("ReplayExportLastEvent") in after the ReplayMark, its a no go. If pop it in a seperate script and trigger that after the ReplayMark, still either no go or only works in the first instance. And using shortcut, same issue, the result isn't consistent. Seems like a possible bug? Code:dim hometeam as string = Input.Find("gameinformation").Text("HomeTeam.Text")
dim awayteam as string = Input.Find("gameinformation").Text("AwayTeam.Text")
dim keepscore1 as string = Input.Find("scorebug").Text("homepoints.Text")
dim keepscore2 as string = Input.Find("scorebug").Text("awaypoints.Text")
dim awayscore as string = Input.Find("scorebug").Text("awaypoints.Text")
dim homescore as string = Input.Find("scorebug").Text("homepoints.Text")
Do While True
awayscore = Input.Find("scorebug").Text("awaypoints.Text")
homescore = Input.Find("scorebug").Text("homepoints.Text")
If NOT ( keepscore1 = homescore ) Then
API.Function("ReplayMarkInOutLive", Value:="7")
API.Function("ReplaySetLastEventText", Value:=hometeam)
End If
If NOT ( keepscore2 = awayscore ) Then
API.Function("ReplayMarkInOutLive", Value:="7")
API.Function("ReplaySetLastEventText", Value:=awayteam)
End If
sleep(1000)
keepscore1 = Input.Find("scorebug").Text("homepoints.Text")
keepscore2 = Input.Find("scorebug").Text("awaypoints.Text")
sleep(1000)
Loop
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
VBscript to export replay events
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