Posted by
Jerome Mutterer-3 on
Mar 15, 2017; 1:19pm
URL: http://imagej.273.s1.nabble.com/Hexadecimal-Code-and-image-tools-tp5018295p5018307.html
Hi,
ImageJ (standard) tools are for interacting with the image. This means they
are triggered (run) when you click inside an image.
If you want a command to be run when you click on the tool button, you need
an "Action Tool" sort of tool.
macro "binary Action Tool - C000T0f18B" {
run ("Make Binary");
}
install this, and the code will be run when you click the button.
Read
https://imagej.nih.gov/ij/developer/macro/macros.html#tools for the
explanations about the different kinds of tools.
Sincerely,
Jerome.
2017-03-14 20:57 GMT+01:00 P Roman <
[hidden email]>:
> Hi,
> Thanks a lot for your answers, Curtis and Michael.
> But i'm still doubtful, I have already seen this reference
> (
https://imagej.nih.gov/ij/developer/macro/macros.html#icons) but it seems
> to me that these instructions are only valid for obtaining the hex codes
> for
> drawing tools. So I wonder, how could is include in my ImageJ toolbar the
> tool linked to a fuction such as Make binary? Is there anywhere in the
> imageJ documentation where I can find this kind of information?
>
> Regards
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.
> com/Hexadecimal-Code-and-image-tools-tp5018295p5018301.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
www.ibmp.cnrs.fr
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html