Macros & keyboard commands

  • 1
  • Question
  • Updated 6 years ago
  • Answered
How do I insert keyboard commands into a macro or update Task Info from a macro?
Photo of andrew capey

andrew capey

  • 7 Posts
  • 1 Reply Like

Posted 6 years ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
Hello Andrew

The function "SendKeys" can be used to send keystrokes to MindManager, e.g.

AppActivate("Mindjet MindManager") ' ensure MindManager app is active
SendKeys("^{Home}", True)

will send Ctrl+Home and will wait for the keys to be dispatched before continuing.

Task Information in a topic can be read and written through the Task object, e.g.

m_Topic.Task.Complete = 100 ' Sets a task to complete
m_Topic.Task.DueDate = Now ' Sets due date to today

where m_Topic is a topic pointer.

As I am sure you have already found, the macro capability in MindManager does not record keystrokes or mouse actions. So it does not automate the user interface, but provides programmatic access to the object model of a map.
Photo of andrew capey

andrew capey

  • 7 Posts
  • 1 Reply Like
Dear Nick,
that's grand.
Supplementary question - where are the mindjet data structures documented, i.e. you've shown 2 above, but what are the others i can address?
TIA
Andrew
Photo of Nick Duffill

Nick Duffill, Champion

  • 512 Posts
  • 170 Reply Likes
Andrew

You can browse the methods and properties and see some short help texts in the Object Model browser, accessed through Debug > Browse in the macro editor window.

There is more descriptive documentation including tutorials for the scripting language available through the Mindjet Developer Network. To access this please send email to

developer.network@mindjet.com

I am also glad to answer specific questions here.
Photo of andrew capey

andrew capey

  • 7 Posts
  • 1 Reply Like
many thanks - that will keep me busy.
I have dropped a note to the developer n/w.

This conversation is no longer open for comments or replies.