Question - Has anyone every written a google search using the macro feature in Mindjet?

  • 2
  • Question
  • Updated 2 years ago
  • (Edited)
Mindjet has the ability to create macros.  I am curious to know if anyone has written a macro?  As a follow up, is it possible to write a macro that would do the google search function?
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes

Posted 2 years ago

  • 2
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes
I don't know much about writing macros in MindManager but I suspect that without the Google map search part this would be a difficult task. Effectively the macro would have to switch out of MM to run the search and then switch back in to paste the results, both as topics and the link URLs. I guess a lot would depend on whether the section of the map search part that did this so effectively was something a macro could get at and run separately from the now-defunct search function.

I'm working on an article for my blog describing searching in MM without the map part and when that's completed I'll post a link here. Essentially searching without the map part becomes a two-step process - you can save basic and advanced searches, both with search parameters, as links attached to topics which you can then run when you wish. You can't replicate the way in which the search part pasted each search result into the map automatically as a sub-topic and a link but you can copy a page of search results and paste them into topic notes with live links.

There are a few other options which I'll cover in the article..
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Thank you.  I look forward to the article.  I just had to ask to see if there were any possible solutions.  
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes
Hi Jerry - here's the link to my article on searching the web in MindManager without the Google map search part: https://sociamind.com/2016/08/14/web-searching-in-mindmanager-without-the-google-search-map-part/
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Great article - helpful.

Thank you.
Photo of Nick Duffill

Nick Duffill, Champion

  • 515 Posts
  • 172 Reply Likes
Hello Jerry. Yes, this is entirely doable. The macro feature in MindManager is very useful for lower-performance solutions that do not need UI features such as ribbon tabs or task panes. From what I have read, the Microsoft XMLHTTP object can be used with VBA-compatible languages and should work with the Google search API. There is also a Generic Smart Map Part in MindManager that can be used to create smart map parts using your own macro code. So all the elements are there - you just need a friendly developer. I would be happy to provide support to anyone who wants to tackle this and share the results :)

http://stackoverflow.com/questions/17495644/using-vba-in-excel-to-google-search-in-ie-and-return-the...
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
That is excellent news!

Now if we can find someone who is really into macros, I think we could put together a virtual team (cross section of users and "maco skilled" people here in the forum)  to create the solution. 

Thanks!
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes

Hi Nick, that's great news - and I stand corrected on how feasible this would be.

As you said however, those of us who aren't programmers need a friendly developer to do this and ideally turn it into an add-in of some sort - either Nigel Goult at Olympic Ltd, or you perhaps?

Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
I am currently looking at this and have a simple proto-type add-in in the works.

The biggest issue is the restriction Google put on the Custom Search Engine requests. You can have 100 requests for free/day which is probably enough for most people. But, you do have to create an API Key AND a Custom Search Engine to search.

All of this is done through the Google Developer site and is fairly straight forward. I hope to be able to demo something very soon and see where we go from there.

If anyone wants to test the add-in then please drop me an email to google@olympic-limited.co.uk
Make sure you let me know which version (including bit version) of MindManager you wish to test with when sending your request.

Regards
Nigel

MAP - The Ultimate Add-in for MindManager 2016!   - Become a MindManager Power User FAST! www.mapformindmanager.com
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Wow!!!!  That is great news. 
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes

Yes - thanks Nigel, this is great news and I've sent you an email.

A couple of comments and a question. If the Google Custom Search Engine acts anything like the old Google API and the map search part there may be some other factors besides the 100 requests a day limit. If I tried say a dozen requests in quick succession searching would freeze and I would get no results on the last search or two. After a few minutes it would start working again. Also you can get to 100 searches in a day quite easily but if that's a hard limit we can learn to live with it.

My question is does the new Custom Search Engine allow you to input search parameters such as date ranges easily, or do we have to resort to inputting dates using the Julian calendar as required by the old Google search API? It would be great to have the ability to input some parameters apart from the search text and the number of results and in particular dates, though life would be a lot simpler if dates could be entered easily - and ideally in relative as well as absolute format, ie, "last 24 hours", "last week", "last month", etc.

Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
So glad to hear about this.  Keep going and my thanks in advance.
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes

it's great that you have made so much progress with it - and apologies if I sounded too demanding! Even a simple search with 10 results would be great at this stage.

Are you thinking of introducing this as a stand-alone add-in or as part of MAP?

Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
I'm looking to incorporate it into MAP but also offer it as a small stand-alone add-in

Next version of MAP in in the works and I will hold it back from release until I am able to add a useful working version of the Google Web Search. This should all be in time for the upcoming MindManager 2017 release.....hopefully :-)
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Excellent.  I like your idea of Bing search.  However, I am thankful for a Google Search as the first priority. 
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
Update: I hope to have something this weekend and will post details here when ready. The add-in is looking good and I hope meets your needs.
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
OK! Here it is. This is the first version of Google Search Plus for MindManager.

This add-in allows you to, once again, search Google and have search results embedded into you Map for further analysis.

The add-in does require you to have a Google Search API key and to create a Google Custom Search Engine but these are explained in our easy to follow videos.

You can get more information here:

Add-in Overview: https://youtu.be/J9lk62ggS_8?list=PLaDN_tweuae5AiTMRW7tz_YYAoVDrJNgl

Create Google API Key: https://youtu.be/bMV_6tmQYDw?list=PLaDN_tweuae5AiTMRW7tz_YYAoVDrJNgl

Create Google Search Engine: https://youtu.be/vP_inGfKG5E?list=PLaDN_tweuae5AiTMRW7tz_YYAoVDrJNgl

Downloads: http://www.olympic-limited.co.uk/downloads/

Purchase: http://www.olympic-limited.co.uk/product/googlesearchplus/

If you have any feedback, suggestions or comments could you please email them to google@olympic-limited.co.uk

There is a help map with links to the web sites and videos accessible from the add-in as well.

Hope this helps those of you who miss the original!

NOTE TO MAP USERS: Google Search Plus functionality will be added to the upcoming MAP 2.3 release!

Regards
Nigel

MAP - The Ultimate Add-in for MindManager 2016!   - Become a MindManager Power User FAST! www.mapformindmanager.com
(Edited)
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Thank you.  I am testing the new search part right now.  The download from your site contains two files.  One is the Google search part and the other is an install exe.  The install exe is being flagged as a serious threat by the Microsoft defender software.  I did not install it.  Can you verify if this file is required as part of the set up.  Thanks.
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
Hi Jerry,

Explorer is known for flagging any unsigned .exe file as malicious. The file (setup.exe) only calls the .msi which you can run on its own if you wish.

Both files are fine though and if you run them through any AV scanner I am sure they will show as clean.

Here is the result of the 32 bit install zip: https://www.virustotal.com/en/file/404246a35f019ef840e3ff7e0ae3b1f383cc9a3653f6d5039984be9adfa6ed91/analysis/1471778400/

Nigel
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Report - The Google Search Part works well.  The installation zip contains the MSI file and a second EXE file.  The second exe file may cause your antivirus software or malware to stop the add-in from being installed on your machine. 

Just add the Google Search Part element.

I followed the two videos that explained how to get the API key and the Google Customer Search. 

Finally, I ran some tests and it worked well.

Suggestion:
1. The videos are good.  However, a screen to screen set of directions may be more helpful for users.

Overall 
It is great to have the search feature back and hats off to this development team for providing a solution in a timely manner.

I give this a 4/5

My thanks!!!!!!!!
  
(Edited)
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
Thanks for the feedback Jerry,

I will look at creating a step by step screen guide for the setting up of the API key and the Custom Search Engine and incorporate that into the Help Map for version 2.0

Nigel
Photo of jerry.mings

jerry.mings

  • 135 Posts
  • 22 Reply Likes
Sounds like a great plan.  Again, thanks for the excellent work.  I am just waiting for my key.  I bought the search :-)
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes

Hi Nigel,

Thanks - this is a very impressive bit of work.


I particularly like the inclusion of the website URL for each result in the topic notes as well providing the link on the topic itself; the relative date parameters which can be set by the user is also a great bonus. For most users I suspect this will be enough, especially as you still have access to the Google search syntax as well.


On my brief testing so far the add-in runs smoothly. You might want to clarify in the instructions somewhere that the while the search text defaults to the topic name if this is changed after the first search is made the edited wording won't affect the search text. This applies even if the Google results subtopic and all the search results attached to the topic are deleted.


The process to obtain the codes is a bit cumbersome but I fully understand why. I second Jerry's suggestion however for some screen shots of the process as well as the videos.


Also I had a problem obtaining the Google Custom Search Engine identifier. On IE running on Windows 10 the create screen kept on locking up for some reason but I didn't have any problem creating the ID using Edge (ironically I have kept IE only because it talks to MindManager and vice versa).


PS - if you have the trial add-in installed what happens when MAP 2.3 comes along - will I need to uninstall the trial?
(Edited)
Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
Hi Alex,

Thanks.

When MAP 2.3 ships you will need to uninstall GSP so you can benefit from the menu customization features of MAP.

Thanks for the heads up on IE. I actually had an issue with IE with a colleague the other day when going through this.

Glad you like it and hope to add some more options shortly.

Nigel
Photo of Alex Gooding

Alex Gooding, Champion

  • 886 Posts
  • 223 Reply Likes

Hi Nigel, I have another suggestion re GSP.

It would be helpful if there was an option in the GSP dialogue box to show the actual URL address for each result instead of the "Click for More" text which now appears in the topic notes. This applies in particularly if the "New topic for each result" box is unticked which means all the results will appear on the GSP topic's topic notes.

I understand that in most cases the "Click for more" option is preferable especially if the underlying URL is very long but there are times when you need the full address (for example if you are exporting to a program which can't see the underlying URL).

Photo of Nigel Goult (Olympic & MIVAP)

Nigel Goult (Olympic & MIVAP)

  • 348 Posts
  • 135 Reply Likes
I'll put it on the list ;-)