I got now this:
jscript code:
function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMessageKind) {
for (var oContact = new Enumerator(oChatWnd.Contacts); !oContact.atEnd(); oContact.moveNext()) {
if (oContact.item().Email === 'contact_email@hotmail.com') {
if(sMessage=="!test"){
oChatWnd.SendMessage("it works");}
}
}
}
It works fine, but, it also works for me now. How can I change it so it will only work for my contact?