Re: User interactive macro
Posted by
Michael Schmid on
Sep 07, 2010; 8:34am
URL: http://imagej.273.s1.nabble.com/User-interactive-macro-tp3687035p3687037.html
Hi Joaquim,
see the documentation of the macro functions. The waitForUser
function is designed for that purpose.
http://rsb.info.nih.gov/ij/developer/macro/functions.html#WAfter waitForUser, you can also check with selectionType() whether
the selection exists and is suitable (e.g., a line selection, no line
selection, etc.)
Michael
________________________________________________________________
On 7 Sep 2010, at 10:24, Soriano.Joaquim wrote:
> HI everyone,
>
> I would like to record a macro by using the macro recorder.
>
> Such macro should start, pause to allow the user to draw a
> selection, then the macro should continue, pause again to allow the
> user to set a threshold and continue to its end.
>
> The question is: is it possible for a Macro to perform such pauses?
> How can I do that?
>
> Thank you very much in advance and thanks to the people who
> encouraged me to learn java and recommended me learning materials.
> I'm working on it.
>
>
>
> Joaquim Soriano Felipe.