attualy i fixed it by using code from both of yours the final thing was:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
Messenger.OpenChat("myemail").SendMessage(From+Message);
return;
}
}
}
}
£2.50 each (around $5 each) to cookie and saralk
thanks guys pm me ur paypal
and finaly do you know how to auto accept added contacts?