Register to post in forums, or Log in to your existing account

Post new topic  Reply to topic     Home » Forums » zMapper Discussion

Joined: 02 Jun 2004
Posts: 1

PostPosted: Wed Jun 02, 2004 5:08 pm   

Linking zMapper with other programs
Anyone has done that?

For example:
Visual Basic program which would 'talk' to opened zMapper and get/send information to/from it? (like move blue dot, or get room information)

Anyone has an idea how to do that?

Reply with quote

Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Jul 01, 2004 1:04 am   
Sorry for not responding...I didn't see this post till today for some reason.

There is a COM API for zMapper, but it only works when zMapper is loaded into zMUD as a plugin. There is a section in the zMapper help file that describes the various COM objects and their properties.

Because the COM interface is actually done via zMUD, in your VB application you need to create the COM object: zmud.Application

Then, you get the current session, then fetch the Map object. For example, here is code to display the current room name:

Set zMUD = createobject("zmud.application")
Set Sess = zMUD.CurrentSession
Set Map = Sess.Map
MsgBox Map.CurRoom.Name

To change the "blue dot", you set the CurRoomID property. For example:

Map.CurRoomID = 100

would move the blue dot to room ID 100.

Like I said, look in the zMapper Help file for more documentation on this.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMapper Discussion All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2009 Zugg Software. Hosted on