i have created an audio player in ams but i want it to automatically play songs i double click. this audio player is my default player for mp3 files etc... is this posibble in autoplay?
Professional Software Development Tools
i have created an audio player in ams but i want it to automatically play songs i double click. this audio player is my default player for mp3 files etc... is this posibble in autoplay?
Yeah it is very possible...
This goes for the On Double-Click event of the ListBox (ListBox1)
This should go on the On Show eventCode:cSelected = ListBox.GetSelected("ListBox1"); if cSelected then cPath = ListBox.GetItemData("ListBox1", cSelected[1]); Audio.Load(CHANNEL_NARRATION, cPath, true, false); end
If you want to play a list of file in sequence, when the currant track is done, then put this code in the On Audio event:Code:CurPlaying = 0
Hope that helpsCode:if (e_State == "Play") then CurPlaying = ListBox.FindItem("ListBox1", -1, LB_BYTEXT, String.SplitPath(Audio.GetFilename(CHANNEL_NARRATION)).Filename); elseif (e_State == "Finish") then cSelected = ListBox.GetSelected("ListBox1"); cTotal = Table.Concat(cSelected , "", 1, TABLE_ALL); cFile = String.ToNumber(cTotal); ListBox.SelectItem("ListBox1", cFile + 1); cPath = ListBox.GetItemData("ListBox1", cFile + 1); Audio.Load(CHANNEL_NARRATION, cPath , true, false); elseif (e_State == "Stop" or e_State == "Pause") then CurPlaying = 0 end![]()
I think he's trying to say when you double click on a file.
Check out this file extension project of RizlaUK's:
http://www.indigorose.com/forums/sho...file+extension