vMix Forums
	 » 
	General
	 » 
	GT
	 » 
	Playing an audio when a certain page is opened
	 
	
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 11/2/2018(UTC) Posts: 44  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. 
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
            
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,453  Location: Belgium Thanks: 311 times Was thanked: 1008 time(s) in 830 post(s)
  
	 
	
     | 
    
        
            
		      
                Originally Posted by: Fountain Kamanga  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  
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 11/2/2018(UTC) Posts: 44  Location: Blantyre Thanks: 6 times
  
	 
	
     | 
    
        
            
		      
                Thanks Doggy will try that.  
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
                           
	vMix Forums
	 » 
	General
	 » 
	GT
	 » 
	Playing an audio when a certain page is opened
	 
	
    
        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