Here is my own mirc code to display the winamp information
I used the following in foobar's Winamp API Emulator title bar: [%artist% ['('%album%[':'%tracknumber%]')'] - %title%]
and used the following code in a mirc remote script file:
alias -l wadll { return $shortfn($scriptdirr1dll.dll) }
alias -l r1raw { return $dll($wadll,$+(GetCurrentWinampSong,$1),0) }
alias fb { say $iif($1,$1- to) $rmp3play }
alias rmp3play {
if ($r1raw) {
return ( $+ $gettok($r1raw(FileName),-1,46) $+ ) $r1raw $+($chr(91),$int($calc($r1raw(ElapsedTime)/$r1raw(TotalTime)*100)),%,$chr(47),$dur($r1raw(TotalTime)),$chr(47),$r1raw(Kbps),kbps,$chr(47),$iif($r1raw(KHz) > 1000,$round($calc($r1raw(KHz)/1000),1)),Khz,$chr(93))
}
else {
return (mp3) Foobar is not Playing
}
}
alias dur %t = $1 | return $iif(!%t,0secs,$s(604800,wk) $s(86400,d) $s(3600,h) $s(60,m) $s(1,s))
alias s %x = $int($calc(%t /$1)) | %t = %t % $1 | if (%x) return %x $+ $2
* note i did not write the original code, only modified it
* also it seems that [ code ] doesn't like to keep some of the mirc modifier codes, u can work out where they are meant to go from the example below.
which produces the following in mirc: when typing /fb
(mp3) Nine Inch Nails (With Teeth:7/13) - With Teeth [34%/5m 37s/217kbps/44.1Khz]
---
www.tiberious.org