quote:Originally posted by Eljay Umm why are you using CreateObject? jscript code:var o = new ActiveXObject("comtest.sniffer"); and everything else works fine ok scrap that, it decided it didn't want to work all of a sudden. jscript code:var o = new ActiveXObject("comtest.sniffer"); function OnEvent_Initialize(){ function o::onPacket(){ Debug.Trace("Event called!"); } o.run(); } That should work, Plus! seems to be fussy about initialisation stuff *shrugs* * Eljay is intrigued by the class name though
jscript code:var o = new ActiveXObject("comtest.sniffer");
jscript code:var o = new ActiveXObject("comtest.sniffer"); function OnEvent_Initialize(){ function o::onPacket(){ Debug.Trace("Event called!"); } o.run(); }