Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ mushclient.tlb

mushclient.tlb

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Riven2k1   (3 posts)  Bio
Date Sat 19 May 2001 09:06 AM (UTC)

Amended on Sat 19 May 2001 09:08 AM (UTC) by Riven2k1

Message
i'm wondering if you could explain the possible uses of mushclient.tlb? through a bit of expiramenting i know how to make it try to create a new mushclient world, but i cant seem to grasp any real uses for this.. i'm wondering if it's possible for me to write some code to, for example, use the Send method from my vb application for a world that already exists and is open? any insight you could give me towards uses of mushclient.tlb would be greatly appreciated..

btw i'm using vb
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 19 May 2001 09:28 AM (UTC)
Message
I haven't tried to use it in great detail I must admit, but that file will let VB know the sort of functions supported by MUSHclient.

Tell me what you are trying to achieve in greater detail, and I'll see if I can suggest a way ...

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Riven2k1   (3 posts)  Bio
Date Reply #2 on Sun 20 May 2001 03:18 AM (UTC)
Message
well, i was just wondering if you knew if it had any use other than as a reference

for example, when i use this code..

set objWorld = new MUSHclient.World

it launches mushclient if it's not open and tries to create a new world, prompting me in mushclient if i want to open the defaults from an existing world

i'm wondering if theres a way i could get a hook from mushclient to a world i have open currently.. for example, maybe i have a world called 'mud5' open and i wanted my program to do something like this..

mud5.Send "hi this is vb talking"
mud5.Disconnect

and it'd do that in mushclient in the world mud5

i dont necessarily need to do this, but i was wondering if that was the purpose of mushclient.tlb or something, and if it was it'd be great to use for things like that

i didnt know if you knew what it was supposed to be used for or anything, but i read in the help that itd be of use to vb programmers.. that's what i was and am trying to find out, how it can be of use in any way aside from reference
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 20 May 2001 09:54 AM (UTC)
Message
You can use mushclient.tlb inside Visual Basic to tell it the sorts of functions MUSHclient has built in.

To answer your question in more detail, can you tell me *where* you plan to put this code? Inside a script called by MUSHclient? Or starting a stand-alone VB program which then starts MUSHclient?

One of the functions supported by MUSHclient is world.GetWorld, which gives you an object to an existing world. This could be passed to a VB program which could manipulate that world. You can also use GetWorldList which gives you a list of the names of all open worlds, which you could then iterate through to (via GetWorld) to do things to each one.

As you have noticed, it wasn't really designed to create a new world from scratch, as world creation asks a couple of questions.

It seems to me from your question that you are trying to find a use for the file rather than solving a particular problem, but if you described the sort of thing you were trying to do, I could better suggest how to go about it, which may or may not involve using VB and the mushclient.tlb file. :)

The other answer would be that it is a useful reference, which shows what MUSHclient supports. You can also see this by visiting http://www.mushclient.com/functions.htm


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Riven2k1   (3 posts)  Bio
Date Reply #4 on Tue 22 May 2001 08:13 PM (UTC)
Message
Well, nevermind, you've pretty much answered my question. I was using that code in vb, not a mushclient script, trying to see if it was a simple way to manipulate mushclient easier than using api and stuff. Anyway, thanks for your help.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,537 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.