Tweeks MP3
Platform: mIRC
Published Jun 07, 2011
Updated Jun 07, 2011
Ok so the volume bar is not mine i did get it from off here but i can not find the person i got it from or i would put there name in.
The rest of the script and dialog is done by me. i did not have any help this time so that is why it dont run as good as most MP3 on here.
Alias tweek {
if (!$dialog(volume)) dialog -mdo volume volume
}
alias Remaining {
If ($dialog(volume)) {
did -ra volume 10 $asctime($round($calc(($insong.length - $insong.pos) / 1000),0),nn:ss),none)
Else { Halt }
}
}
dialog volume {
title "tweekMP3"
size -1 -1 220 267
option pixels notheme
scroll "", 2, 7 7 145 19, horizontal top range 0 100
button "Mute", 5, 160 7 55 19
list 1, 6 28 208 151, vsbar sort
button "Play", 3, 6 176 65 25, multi
button "Stop", 4, 79 176 65 25
button "Directory", 6, 152 176 65 25
button "Pause", 7, 6 203 65 25
button "Resume", 8, 152 203 65 25
edit "", 9, 7 231 212 20, read
edit "", 10, 81 207 64 20, read center
text "Tweek MP3", 11, 60 252 100 12, center
}
Menu * {
tweek: tweek
}
on *:dialog:volume:*:*: {
if ($devent == InIt) {
Did -a volume 1 $findfile(%dir, *.mp3,0,did -a volume 1 $nopath($1-))
did -ra volume 9
did -ra volume 10 00:00
}
var %volume $round($calc($vol(master) * 100 / 65535),0)
if ($devent = init) {
did -c volume 2 %volume
dialog -t volume Volume $chr(160) $+(%volume,/100%)
}
if ($devent = scroll && $did = 2) {
vol -v $calc(653.5 * $did($dname,2).sel)
var %sound $iif($did($dname,2).sel = 0, $chr(160) No Sound,$+($did($dname,2).sel,/100%))
dialog -t volume Volume $chr(160) %sound
}
if ($devent = sclick && $did = 5) {
if ($vol(master).mute) {
vol -vu2 | did -ra volume 5 Mute
dialog -t volume Volume $chr(160) $+(%volume,/100%)
}
else { vol -vu1 | did -ra volume 5 UnMute | dialog -t volume Volume $chr(160) $chr(160) @Muted@ }
}
If ($Devent == Sclick) {
If ($did = 3) {
var %Playing $Remove($did(volume,1).seltext,.volume)
var %song $findfile(%dir,$did(volume,1).seltext,1)
set %length $gmt($round($calc($mp3(%song).length / 1000),0),nn:ss)
splay %song
Did -a $dname 9 $remove($nopath($insong.fname)$1-,.mp3)
Did -ra $dname 10 %length
.timermp3 0 0 Remaining
}
If ($did = 7) {
Splay Pause
}
If ($did = 8) {
Splay Resume
}
If ($did = 4) {
Splay stop
}
If ($did = 6) {
set %dir $sdir="Mp3 Directory"
write mp3.txt
noop $findfile(%dir,*.mp3,0,write mp3.txt $1-)
var %num $findfile(%dir, *.mp3,0,did -a volume 2 $nopath($1-))
}
}