this is simple mp3 player. Easy to use.
btw sry but i have copyed 2lines because i didn't knew how to make it :/ i'm almost new in scripting
in version 1.1 i add:
<> repeat check - it allow u to play selected song as much as u keep that check pressed <> <> next song options - allows u to change song <> <> previous song - allows to change back song <> in version 1.2: <> modifed interface <> updated pause buton :} <> ```mirc dialog mp3 { title "mp" size -1 -1 141 89 option dbu edit "", 1, -2 -1 144 13, disable center list 2, -2 10 144 50, size button "Play", 3, 23 61 31 12 button "Add dir", 4, 95 75 46 12 button "Stop", 5, 87 61 31 12 button "Pause", 6, 55 61 31 12 button "Clear", 7, 0 75 46 12 button "<<", 8, 0 61 22 12 button ">>", 9, 119 61 22 12 check "Repeat", 10, 48 75 45 12, push } on *:dialog:mp3:sclick:*:{ if ($did == 4) { set %diras $sdir="Nurodyk direktorija"" | var %hh = $findfile(%diras,*.mp3,0,did -a mp3 2 $nopath($1-)) } if ($did == 3) { set %dajna $did(2).seltext set %dajna1 $nopath($insong.fname) set %dajna2 $nopath($insong.fname) did -ra mp3 1 $remove(%dajna,.mp3) splay %diras $+ %dajna did -e mp3 6 did -ra mp3 6 Pause } if ($did == 5) { splay stop did -r mp3 1 did -ra mp3 6 Pause did -b mp3 6 unset %dajna } if ($did == 6) { splay -p $iif($insong.pause,resume,pause) | $iif($insong.pause,did -ra mp3 6 Resume, did -ra mp3 6 Pause) } if ($did == 7) { did -r mp3 2 | unset %dajna | unset %diras } if ($did == 10) { set %mpstate $did(10).state if ($did(10).state == 1) { did -c mp3 10 } else { did -e mp3 10 } } if ($did == 9) { set %dajna1 $nopath($insong.fname) splay $findfile(%diras,*.mp3,$r(1,$findfile(%diras,*.mp3,0,)))) set %dajna $nopath($insong.fname) | set %dajna2 $nopath($insong.fname) | did -ra mp3 1 $remove(%dajna,.mp3) } if ($did == 8) { .splay %diras $+ %dajna1 | did -ra mp3 1 $remove(%dajna1,.mp3) } } on *:mp3end: { if (%mpstate == 1) { splay %diras $+ %dajna } else { if (%mpstate == 0) { set %dajna2 %dajna1 splay $findfile(%diras,*.mp3,$r(1,$findfile(%diras,*.mp3,0,)))) set %dajna $nopath($insong.fname) | did -ra mp3 1 $remove(%dajna,.mp3) } } } on *:dialog:mp3:init:*:{ var %hh = $findfile(%diras,*.mp3,0,did -a mp3 2 $nopath($1-)) if ($insong) { did -ra mp3 1 $remove(%dajna,.mp3) | did -ra mp3 6 Pause } if (!$insong) { did -ra mp3 6 Pause | did -b mp3 6 } if (%mpstate == 1) { did -c mp3 10 } else { if (%mpstate == 0) { did -e mp3 10 } } } alias mp3 { /dialog -m mp3 mp3 } menu channel { mp .MP3:/mp3 .say:/msg # mp: $+ $remove(%dajna,.mp3) $+ } ```