On dialog init, usualy it loads all the mp3files in the playlist. But I dont want it that way, I want to listen to only a few song that can be choosen from the sounds folder and put it in the playlist. Can this be done?. Some commands that I've seen was when you click a file to insert it in the playlist it will overwrite the one that is already in the playlist and only one file can be inserted. What I want is to insert more than one file and not all of it from the sounds folder.
on *:dialog:mp3player:init:*:{
if (%mp3.dir == $null) {
%mp3.dir = $sdir(Select Your Directory)
}
set %amout.mp3 $findfile(%mp3.dir,*.mp3,0)
var %x = 1
while (%x <= %amout.mp3) {
did -a $dname 2 $nopath($findfile(%mp3.dir,*.mp3,%x))
inc %x
}
}
I hope you understands what I meant. Thanks