Login  Register

Re: rectangle selection while running a macro, is it possible?

Posted by Mario Faretta on May 20, 2010; 2:47am
URL: http://imagej.273.s1.nabble.com/rectangle-selection-while-running-a-macro-is-it-possible-tp3688251p3688252.html

Il 5/19/2010 7:44 PM, Bruno Jesus ha scritto:

> Hello list,
>
> Does anyone know if it is possible to add a step during a macro that asks to
> the user for a rectangle selection? I'm writing a macro that should: (1)
> open an image; (2) ask the user to make a rectangle selection with the mouse
> and then (3) runs a series of functions on that selection. I'm doing ok on
> nº 1 and nº 3 but can't figure out how to ask for the user input in the
> selection.
>
> Any help would be much appreciated!
> Bruno
>    
take a look at the waitForUser(title, message) macro function at
http://rsb.info.nih.gov/ij/developer/macro/functions.html#W.
ciao
Mario

--
Mario Faretta
Department of Experimental Oncology
European Institute of Oncology
c/o IFOM-IEO Campus for Oncogenomics
via Adamello 16 20139 Milan Italy
Phone: ++39-02574303054
email: [hidden email]
http://www.ifom-ieo-campus.it