quote:
Originally posted by roflmao456
code:
var ChatWnds = new Array();
function OnEvent_ChatWndCreated(ChatWnd){
ChatWnds.push(ChatWnd);
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Origin !== Messenger.MyName){
for(i in ChatWnds){
if(ChatWnd === ChatWnds[i]){
// first message received..
}
}
}
}
could try that, haven't tested it since i'm currently skinning
just need to make sure you set ChatWnds[i] to null in that if, otherwise the next message will be seen as the first too.