To create an ActiveXObject:
code:
var myObj = new ActiveXObject("ClassName");
So, an example would be:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
var myObj = new ActiveXObject("MyLibrary.MyObject");
var result = myObj.DoSomething(Message);
return result;
}
assuming that
MyLibrary.MyObject is a registered object.