I have a question for you gurus out there, especially ones familiar with XScript.
I need to interact XLobby with another program which can send and receive ActiveX messages. I have written several VBScripts which interact with said program. Now I need to extend that experience to XLobby. I want to send commands to the program when buttons are pushed in XLobby, and I want to receive data (just some text and/or numbers) back and display it in XLobby. The responses come from the app in the form of ActiveX messages.
I do need help understanding what I need to get XLobby talking to the ActiveX control. Do I need XScript? Is that all I need? Can I use VBScript or something very similar? Does someone have code examples of registering with an ActiveX control for events, or is it so similar to VBScript that I don't even need to worry?
My intention is to do the legwork to get XLobby talking to a Slink-e device. The device itself, and its serial interface, are complicated, but luckily it comes with an application called SlinkeServ which does ALL the hard work, and it simply sends messages and receives commands (via an ActiveX control) to/from other applications which want to control devices attached the the Slinke. My goal is to get one or more Sony 400 Disc CD changers to connect to XLobby interactively (they can send status back via the Slinke, including track number, play time, and even track names). Again, I have a lot of experience writing VBScript code to interact with the CD Changers via the SlinkeServ ActiveX control (Slinkx). IR Transmit/receive to/from Slinke is another goal. Obviously once it is working I will contribute my efforts back to the xLobby community.
There are a few posts in the forum regarding the Slink-e. Nobody tackled it because it was deemed too difficult, but they did not consider how incredibly easy it is to interact with SlinkeServ (as opposed to the difficulty of directly interacting with the Slink-e over RS232). Here is an example of how easy it really is. This is a script which will tell a CD changer to "play":
set SlinkX1 = CreateObject("Slinkx.SlinkxCtrl.1")
SlinkX1.Send "cdp400", "Play"
That's it. Receving status back from the SlinkX1 object is just as easy. I'd just like some pointers to get started: what plugin(s) if any are needed, and maybe some code examples of interaction with an ActiveX control.