Accessing activeX control from other layer
from
Stardock Forums
I want to call a method from an activeX control from another layer object. A script attached of the activeX control does list me the methods, but externally it says unknown method.
var activeX = DesktopX.Object("myUsedActiveX");
if(activeX)
{
Script.MsgBox(activeX.name);
//activeX.Control.DoCommand(cmd); // doesnt work
activeX.DoCommand(cmd); // doesnt work either
}
else
Script.MsgBox("activeX not found"); // thats not called, i get that object