hello . how can you get it to jump to the next track automaticly after the tracks on the grid playlist are finishid. track finish and automaticly jump next row ?
Professional Software Development Tools
hello . how can you get it to jump to the next track automaticly after the tracks on the grid playlist are finishid. track finish and automaticly jump next row ?
Since you know what 'track' is playing next, you can use the On Finish action of the MP plugin or Audio object to load/play the next track in sequence.
hth
list box sample code
Mp plugin "on finish"
but how can i do this code working in a grid pluginCode:piko = ListBox.GetSelected("playlistbox"); if (piko ~= nil) then piko[1] = piko[1] + 1; if piko[1] <= ListBox.GetCount("playlistbox") then ListBox.SelectItem("playlistbox", piko[1]); playmovie = ListBox.GetItemData("playlistbox", piko[1]); MediaPlayer.Load("Video1", playmovie); else end end
sory im very bad speek english
Upon completion of a playing track "On Finish" of the MP plugin; you can increment to the next row in the grid, then Use Grid.GetCellText() to extract the next value of the "track" in the grid; and so on, until you have depleted the rows in the grid.
Unfortunately there is not a tutorial for the grid object - but you should be able to follow the examples in the AMS help.
hth
what kind of code should I use in order to increment the row to 1 space above automatically? can you write me the code?
2 days only this idea trying but i cant get a rows number and set rows number i cant automaticly select a number![]()
I really don't have a lot of time to spend coding this but something like this should get you started loading the grid. This hasn't been tested but as I said should get you started.
You should be able to repeat this code for *.MP3, *.Wav etc. to load the grid. I would think there should be numerous examples on the forum as to loading and manipulating grids...(maybe not)Code:tuneTbl={} -- set up a tune table tuneTbl = File.Find("AutoPlay\\Audio\\tunes\\", "*.ogg", false, false) -- find and load all ogg files for x = 1, Table.Count(tuneTbl) do last = Grid.InsertRow("Grid1", -1, true) -- inserts at next available row Grid.SetCellText("Grid1", last, 0, tuneTbl[x], true) -- load the tune Grid.AutoSize("Grid1", GVS_DATA, true) -- expand the cell Grid.Refresh("Grid1") -- refresh the grid end
hth
I got this error:
Page1 -> Video2 -> On finish, line 3: Argument 1 must be of type table.
??
Joe