something like this works:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage){
if(sMessage == "^^CurrentMedia"){
var Message = "/me is now playing "+ Messenger.CurrentMedia ;
ChatWnd.SendMessage(Message);
sMessage="";
return sMessage;
}
}
edit: Dhaya you are faster