Gex commented on a Page, -Gone-  -  Feb 05, 2006

`kazuma thats because of loops over low ... darthreven i donno y u used loops and made this alias od 20 or 25 lines...it can be simply done easier,shorter,faster than that...

alias mort.mp3.writetolist {
if ($dialog(mmtm)) {
var %num 1
did -r mmtm 12
while (%num <= $findfile(%mort.mp3dir,.mp3,0)) {
write mp3list.txt $findfile(%mort.mp3dir,
.mp3,%num)
did -a mmtm 12 Track: %num Name: $remove($findfile(%mort.mp3dir,.mp3,%num),%mort.mp3dir)
}
inc %num
}
else {
var %num 1
while (%num <= $findfile(%mort.mp3dir,
.mp3,0)) {
write mp3list.txt $findfile(%mort.mp3dir,*.mp3,%num)
inc %num
}
}
}

that alias is really messed up , it hold alot of uneeded identifiers,variabled,commands u should have simply done it using

alias mort.mp3.writetolist {
if ($dialog(mmtm)) {
did -r mmtm 12
var %x $findfile(%mort.mp3dir,*.mp3,tempo,write mp3list.txt $1-)
loadbuf -o mmtm 12 mp3list.txt
}
}

that will load all the filenames without the path to the file mp3list.txt then loads the file into the list box so fast. u can then play this mp3 by /splay $findfile(%mort.mp3dir,$did(12),1). you dont need to use $remove(x,%mort.mp3dir) to ur knowledge $nopath() do the same and its the original for that purpose. briefly this is a 1000 lines snippet while it can be 600 lines snippet.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.