mIRC Home    About    Download    Register    News    Help

Print Thread
#115554 27/03/05 03:01 PM
P
phishes
phishes
P
i got this for the the advert for my mp3 player, but i've wanted it to show how many tracks i currently have, and the number of the track i'm playing ie;


#60/3450 Anne Savage! ~ The Storm (4:32@192kbps)

this is what i have, but i don't know how to go about it
Code:
alias mp3.ad {
  if ($insong) {
    var %artist = $gettok($replace($nopath($insong.fname),.mp3,),1,45)
    var %title = $gettok($replace($nopath($insong.fname),.mp3,),2-4,45)
    var %bitrate = $sound($insong.fname).bitrate $+ kbps
    if ($sound($insong.fname).length >= 3600000) var %len = $gmt($calc($sound($insong.fname).length / 1000),h:nn:ss)
    else var %len = $int($gmt($calc($sound($insong.fname).length / 1000),nn)) $+ $gmt($calc($sound($insong.fname).length / 1000),:ss)
    var %sample = $sound($insong.fname).sample
    var %mode = $sound($insong.fname).mode
    var %size = $file($insong.fname).size
    if (%size > 1000000) var %size = $round($calc(%size / 1000000),2) $+ Mb
    elseif (%size > 1000) var %size = $int($calc(%size / 1000)) $+ Kb
    if ((%artist == $null) || ($asc(%artist) == 32)) var %artist = $gettok($replace($nopath($insong.fname),.mp3,),1,45)
    if ((%title == $null) || ($asc(%title) == 32)) var %title = $gettok($replace($nopath($insong.fname),.mp3,),2-4,45)
    var %msg = $replace(%mp3.advertise,<artist>,%artist,<title>,%title,<bitrate>,%bitrate,<length>,%len,<sample>,%sample,<size>,%size,<mode>,%mode,-,~)
    scid $activecid
    amsg %msg
  }
}  


thankyou in advanced if you can help

#115555 27/03/05 04:00 PM
P
Profanity
Profanity
P
Is there a winamp plugin for mirc? If there is can someone give me a URL?

#115556 27/03/05 04:04 PM
C
CtrlAltDel
CtrlAltDel
C
A Google search found this

#115557 27/03/05 04:10 PM
P
Profanity
Profanity
P
much appreciated smile you peoples are better than google! :P

#115558 27/03/05 06:04 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Well there's a few ways.

If your using Custom Windows:

Maybe something like:

//echo -a $+($sline(@CustomWindow,1).ln,/,$line(@CustomWindow,0))

I have the exact same thing but using dialogs:

$+($did(dname,ID).sel,/,$did(dname,ID).lines)

Hope this helps.

All the best,

-Andy.


Link Copied to Clipboard