quote:
Originally posted by ombadboy
the command you entered is not correct..
quote:
Originally posted by upsfeup
!!! You have to register it in the XML! ScriptInfo.xml
the way to not use the command is to change the first letter to ! instead of /
It will work the same, but it won't appear in the command list when you type "/"
you dont have to register it in ScriptInfo.xml just change mattys code like
quote:
Originally posted by Matty
code:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
if (sMessage.substring(0, 6) == '/imall'){
var NewMessage = sMessage.substr(7);
var ChatWnd;
for(var enumerator = new Enumerator(Messenger.MyContacts) ; !enumerator.atEnd(); enumerator.moveNext()){
var Contact = enumerator.item();
if (Contact.Status != 1){
ChatWnd = Contact.OpenChat(Contact.Email);
ChatWnd.SendMessage(NewMessage);
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x10, 0, 0);
return '';
}
}
}
}