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
Fountain Kamanga  
#1 Posted : Sunday, May 7, 2023 7:38:00 AM(UTC)
Fountain Kamanga

Rank: Advanced Member

Groups: Registered
Joined: 11/2/2018(UTC)
Posts: 44
Malawi
Location: Blantyre

Thanks: 6 times
I need a script that plays an audio according to the page selected in that particular gtzip title.

How is that possible?

Got one from the forum and it is looping in between the pages automatically and writes the page number to another title but I am having issues in having it write the page number when apage is manually selected:

dim x as integer
Dim Index as integer =0
Do while Index <=100
for x = 1 to 6
sleep(10000)
api.Function("SelectIndex",Input:="Title 1.gtzip",Value:=x)
API.Function("SetText",Input:="Title 2.gtzip",SelectedIndex:="0" ,Value:=x)
next x
index +=1
loop


Thanks for the assistance in advance.
doggy  
#2 Posted : Sunday, May 7, 2023 4:15:41 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: Fountain Kamanga Go to Quoted Post
I need a script that plays an audio according to the page selected in that particular gtzip title.

How is that possible?

Got one from the forum and it is looping in between the pages automatically and writes the page number to another title but I am having issues in having it write the page number when apage is manually selected:

dim x as integer
Dim Index as integer =0
Do while Index <=100
for x = 1 to 6
sleep(10000)
api.Function("SelectIndex",Input:="Title 1.gtzip",Value:=x)
API.Function("SetText",Input:="Title 2.gtzip",SelectedIndex:="0" ,Value:=x)
next x
index +=1
loop


Thanks for the assistance in advance.


Retrieve the "selectedIndex" of the GT file from the API XML and instruct accordingly to the value found
Fountain Kamanga  
#3 Posted : Sunday, May 7, 2023 4:58:01 PM(UTC)
Fountain Kamanga

Rank: Advanced Member

Groups: Registered
Joined: 11/2/2018(UTC)
Posts: 44
Malawi
Location: Blantyre

Thanks: 6 times
Thanks Doggy will try that.
Users browsing this topic
Guest
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.