Trying to reference MUSHclient from an external program

Posted by Krenath on Mon 14 Jan 2002 06:13 AM — 3 posts, 15,109 views.

USA #0
I've created a reference to MUSHclient from an external program with the intention of being able to access MUSHclient's active World object from this program.

What I'm currently doing is as such:

Dim MushClientWorld
Set MushClientWorld = CreateObject("MushClient.World")


I'm not having any trouble connecting to MUSHclient, but the problem is that the second I do, MUSHclient feels compelled to create a brand new world from scratch, rather than simply connecting me to the active world's world object.

If I manage to get this working, I'll be able to create add-on programs that would be able to format and display data graphically, and these programs would be optional, not generating any errors within MUSHclient scripts if they're not running.

Australia Forum Administrator #1
I recognise that as a limitation of using MUSHclient as a COM object.

I can only suggest that you somehow create the external object from within MUSHclient, and pass a world reference to it. I think there are examples of that here.

ie. Instead of ...

Your program -> Create MUSHclient

you do ...

MUSHclient -> Create your program

USA #2
Bleah.

So far, it seems that if I reference my program from withing MUSHClient, I can't actually create any windows.

I'll try again. Maybe it's changed since the last release I tried that on.

I'm guessing I'll have to go to some intermediary object that can serve as a communication channel between MUSHclient and an external program. The MSWC.Myinfo component that comes with Internet Information Server might make a good once since it supports persistent storage of hierarchical data.