How start a macro from toolbar

Tags: #<Tag:0x00007fb87a02eb50> #<Tag:0x00007fb87a02ea10> #<Tag:0x00007fb87a02e8d0>


Hi everybody,

I would like to start a macro from the imageJ toolbar. For that, i added this in the startupMacros file :

macro "Start Analyse Tool - C037L494fL4990L90b0Lc1c3L82a4Lb58bL7c4fDb4L5a5dL6b6cD7b" {

But, the problem is, when i click on the button, nothing happened. In order to run my macro, i need to open an image and click on the image. Is there a way to run my macro just by clicking on the button in the toolbar ?

Thank you,


Your code create a simple Tool, but what you want is an Action Tool. From the documentation:

Action Tools
Tool macros with names ending in “Action Tool” perform an action when you click on their icon in the toolbar.


Great ! It’s perfect now ! Thanks a lot imageJan !