TheGuruSupremacy
Full Member
Posts: 367 Reputation: 19
34 / /
Joined: Nov 2006
|
RE: SP3 - MsgPlus Script Problem
Try to use this code
code: function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind )
{var Contacts = ChatWnd.Contacts
var Contact = new Array()
var e = new Enumerator(Contacts)
var i =0
for(;!e.atEnd();e.moveNext()){
Contact[i] = e.item().Name
Debug.Trace(Contact[i])
i++}
for(var y=0;y<Contact.length;y++){
if (Origin==Contact[y]){
ChatWnd.SendMessage("OOOOOOOOOOOOOOOK")}}
};
|
|