AMP Status — File Browser
AMPStatusv1.0 / AMPStatusv1.0 / ampstatus / ampstatus.mrc
ampstatus.mrc — 3.14 KB — Download this file
;
;
; AmpStats 1.0
;
; This Addon is © 2001 DrBoz - http://bozirc.com-1.net
;
; Thanx to LightStrike (LightStrike@mail.pt) for the Swamp Dll
;
;
on *:LOAD: {
echo -a Loaded AmpStats 1.0 - © 2001 DrBoz
echo -a Recommended to use with the latest mIRC version.
echo -a Your WinAMP Status can be use from the popup menu's or with the command "/sayamp"
}
menu channel,query,nicklist,menubar {
-
AmpStats: sayamp
-
}
alias sayamp {
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, INSTALLED) == $false) { say $ampnoinstal | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, RUNNING) == $false) { say $ampquit | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Playing) { say $ampplaying | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Paused) { say $amppaused | halt }
if ($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, STATE) == Stopped) { say $ampstopped | halt }
}
alias ampplaying { return winamp( $+ $dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, VERSION) $+ ) playing( $+ $replace($remove($nopath($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKFILENAME)),.mp3),_,$chr(32)) $+ ) stats( $+ $int($calc(($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, PLAYEDTIME) / $calc($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME) * 1000)) * 100)) $+ $chr(37) of $replace($duration($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME)),hrs,h,hr,h,mins,m,secs,s,sec,s) $prcbar($int($calc(($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, PLAYEDTIME) / $calc($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME) * 1000)) * 100))) $+ ) }
alias amppaused { return winamp( $+ $dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, VERSION) $+ ) paused( $+ $replace($remove($nopath($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKFILENAME)),.mp3),_,$chr(32)) $+ ) stats( $+ $int($calc(($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, PLAYEDTIME) / $calc($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME) * 1000)) * 100)) $+ $chr(37) of $replace($duration($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME)),hrs,h,hr,h,mins,m,secs,s,sec,s) $prcbar($int($calc(($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, PLAYEDTIME) / $calc($dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, TRACKTIME) * 1000)) * 100))) $+ ) }
alias ampstopped { return winamp( $+ $dll($shortfn($mircdirampstatus\swamp.dll), WinAmpGet, VERSION) $+ ) (stopped playing) }
alias ampquit { return winamp(is not running) }
alias ampnoinstal { return winamp(is not installed on this machine) }