Login  Register

Re: active mouse within a macro

Posted by Herbie on Nov 05, 2015; 4:06pm
URL: http://imagej.273.s1.nabble.com/active-mouse-within-a-macro-tp5014856p5014860.html

Jeremy,

a look at the available macro functions reveals:

        imgID = getImageID();

The explanatory text tells us:
"Returns the unique ID (a negative number) of the active image."

The rest is a question of adequate loops that allow you to activate the
desired images.

HTH

Herbie

::::::::::::::::::::::::::::::::::::::::::
Am 05.11.15 um 16:30 schrieb Jeremy Adler:

>
> I would like to use the mouse within a macro to select a pair of
> images to process - I can't see how.
>
> I can give the images names before the macro runs and use the names
> within the macro, but it would be much less just to select them with
> the mouse.
>
> Suggestions would be appreciated.
>
>
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html