What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Determing if message was first sent?

Determing if message was first sent?
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: Determing if message was first sent?
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 :P

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.
The previous sentence is false. The following sentence is true.
08-13-2008 09:48 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Determing if message was first sent? - by Zero on 08-13-2008 at 03:56 AM
RE: Determing if message was first sent? - by roflmao456 on 08-13-2008 at 04:17 AM
RE: RE: Determing if message was first sent? - by segosa on 08-13-2008 at 09:48 AM
RE: Determing if message was first sent? - by Zero on 08-14-2008 at 07:54 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On