Guest User

Untitled

a guest
Jun 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. alias promp3 {
  2. window -ald @promp3
  3. loadsongs $1-
  4. }
  5.  
  6. alias -l loadsongs {
  7. if ($len($1-) > 0) %promp3dir = $+(",$1-,")
  8. if (!$var(%promp3dir)) %promp3dir = $sdir(C:,Select mp3 directory)
  9.  
  10. clear @promp3
  11. .echo -q $findfile(%promp3dir,*.mp3,0,0,@promp3)
  12. }
  13.  
  14. alias -l promp3play {
  15. if (!$window(@promp3)) return
  16. if ($line(@promp3,0) == 0) return
  17.  
  18. tokenize 32 $$1 1
  19.  
  20. if ($1 > $line(@promp3,0)) tokenize 32 1
  21.  
  22. splay -p $+(",$line(@promp3,$1),")
  23. sline @promp3 $1
  24. ;echo -s * Playing $line(@promp3,$1)
  25. }
  26.  
  27. on *:MP3END:{
  28. if (!$window(@promp3)) return
  29. promp3play $calc($sline(@promp3, 1) + 1)
  30. }
  31.  
  32. menu @promp3 {
  33. dclick:{ promp3play $1 }
  34. rclick:{ remove $+(",$line(@promp3,$1),") | dline @promp3 $1 | promp3play $1 }
  35. }
Add Comment
Please, Sign In to add comment