| Return to Index | Read Prev Msg | Read Next Msg |

Slink-e / CDJ Discussion Archive #2

Windows Scripting Host vs. SlinkX

Posted By: Darrin Massena <darrin@m...>
Date: Thursday, 29 October 1998, at 8:49 p.m.

Has anyone successfully used the SlinkX ActiveX control within a Windows Scripting Host script? A JScript script as simple as:

| // Is this the right name? Pulled ProgID from the registry
| var slinkx = WScript.CreateObject("SLINKX.SlinkxCtrl.1")
| if (slinkx != null)
| WScript.Echo("SlinkX created")
|
| var n = slinkx.NumSlinkes
| WScript.Echo("Found " + n + " Slinkes")

results in "SlinkX created", then "Unexpected failure" at the n = slinkx.NumSlinkes line.

I can see SlinkX is being loaded and initialized (slinkeserv launches and pops up its window) but unfortunately I can't tell much more than that as WSH's debugging facilities don't extend to what goes on _inside_ a control.

I'd love to get this working and have the equivalent of batch-file control over my IR/Slink devices. WSH scripts can even respond to device events (theoretically).

For the curious, see http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/default.htm for more info on the Windows Scripting facility.

| Return to Index | Read Prev Msg | Read Next Msg |

Password:

Slink-e / CDJ Discussion Archive #2 is maintained by slinke-bbs-owner@nirvis.com with WebBBS 3.21.