Pages: 1
Print
Author Topic: Creating event aware objects  (Read 64 times)
JRP
Member

Posts: 2


« on: September 28, 2018, 03:13:16 PM »

I'm using XMetal 11 Author Enterprise version 11.0.0.066.

Is it possible to use WScript.CreateObject in a macro to enable event handling from .NET objects?  When I try to use the following jscript in a macro, the code fails to create the object.

   var objTest = null;
   objTest = WScript.CreateObject("testEvents.testEvent","objTest");


As I understand it, creating objects using new ActiveXObject or CreateObject generically does not allow the script to consume events raised from an object.  Any help with processing events raised from .NET objects would be appreciated.
Logged
Pages: 1
Print
Jump to: