Automatically start macro when opening mindmap

  • 1
  • Question
  • Updated 6 years ago
  • Answered
How can I make a macro that is listening to events start automatically when a mindmap is opened?
Photo of robert

robert

  • 4 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brittney Mazzetta

Brittney Mazzetta

  • 1981 Posts
  • 68 Reply Likes
MindManager has the ability to aggregate events into one central map through Macros. This is something that our Mindjet consulting team can do for an additional fee. Otherwise, please refer this inquiry to the Mindjet Developer Network for samples and examples of similar Macro Development. https://devzone.mindjet.com/display/m...
Photo of robert

robert

  • 4 Posts
  • 0 Reply Likes
Hi Brittney,

Thanks, I'll first try the devzone.

Regards,
Robert
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Macros are not ideal for handling events, because they must remain in scope for the event to be handled. This is fine for solicited events such as the callback from the TopicFinder or Transaction objects, where a macro can initiate an action and then loop on the Wait statement until the event fires. But unsolicited events such as edits in the map or command objects firing are more awkward, because the macro must maintain execution to listen for them. This will block whatever process launches the macro. An Add-in (rather than a macro) is much better suited to this, because Add-in code is always in scope and each add-in has its own execution thread.

There is no inbuilt mechanism to launch a macro when a map is opened, but there is an event from the object model that can be handled by an Add-in.

To run some processing when a map opens, and listen for further events from that map, I would recommend that you create an Add-in instead of a macro.
Photo of robert

robert

  • 4 Posts
  • 0 Reply Likes
Hi Nick,

I tried to get an account at the DevZone to be able to access the SDK and create an add-in. However, on March 10, 2012 Alex told me they were busy with it and didn't allow new registrations.

I'll try again in a moment...

Best regards,
Robert
Photo of Nick Duffill

Nick Duffill, Champion

  • 505 Posts
  • 168 Reply Likes
Robert - send an email to support commercialat harportconsulting.zendesk period com and I will get a beta copy of the API documentation to you, which includes macro and add-in tutorials. Sorry for the hieroglyphics in the email address, but you know what it is like :)

This conversation is no longer open for comments or replies.