winaim away
Posted by w.e
Monday, November 07, 2005
Description: puts winamp's song in an away message (and refreshes)
you need amip to use this ! [amip.tools-for.net]
you need amip to use this ! [amip.tools-for.net]
alias start {
if (%on) { unset %on | .timermp3 off | echo -a AwayMP3 disabled | halt }
set %on 1
set %awaymsg $replace($$?="away msg?",$chr(32),+)
.timermp3 0 0 awaymp3
echo -a AwayMP3 enabled
}
alias awaymp3 {
var %current $dde(mPlug,format,"%pm:%ps")
var %end $dde(mPlug,format,"%min:%sec")
var %pos $dde(mPlug,format,"%pos")
var %total $dde(mPlug,format,"%ll")
if ($dde(mPlug,var_name) == %last) { halt }
set %last $dde(mPlug,var_name)
set %html $replace(<BODY BGCOLOR="#ffffff"><FONT COLOR="#000080" FACE="Tahoma" LANG="142" SIZE="-7">,$chr(32),+)
run aim:goaway?message= $+ %html $+ $replace(im listening to <b> $+ %pos $+ . $dde(mPlug,format,"%name") $+ <b>,$chr(32),+) $+ $replace(<b> %end </b> on a playlist of %total songs</font>,$chr(32),+)
}
menu * {
.aim
..Away MP3:start
}