u/kfor1996

▲ 4 r/vmix

How can I make a list input to loop on itself when I hit the last item using script?

This is a script I created. It will check if it is 6 pm, and if it is, it will make it so the next item in the list is selected to be played by a playlist. However, the problem is now that when we reach the end of the list, the last item keeps getting selected. I want to make it so that when the last item is currently selected and we hit the 6 pm, the very first item of the list is selected:

Dim CurrentHour As String = DateTime.Now.ToString("HH")

If CurrentHour = "18" Then

API.Function("NextItem", Input:="ListA")

API.Function("NextItem", Input:="ListB")

API.Function("NextItem", Input:="ListC")

End If

And I can NOT hit the Loop button on the list input because when I hit them, only items from that list gets played and we get stuck in it. I wanted to make it so that 1 item from ListA, ListB, and List C gets played and those same item keeps getting played for 24 hours, until we hit 6 pm, then the next item in the list gets played

reddit.com
u/kfor1996 — 6 days ago

Hi y'all,

I really need likes and positive comments on the last episode of my mini-series

https://youtu.be/lvUqrChegpE?si=GHLrk_MekkcIGngj

I am good on subscribers and even views but I really need those like numbers and comment numbers go up.

In return I will subscribe, comment, view, and like your videos

u/kfor1996 — 24 days ago