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

Posts: 2

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

I'm using XMetal 11 Author Enterprise version

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.
Pages: 1
Jump to: