Login  Register

Re: Macro: Switch between interactive and batch mode

Posted by jmutterer on Jun 27, 2007; 12:02pm
URL: http://imagej.273.s1.nabble.com/Macro-Switch-between-interactive-and-batch-mode-tp3698989p3698993.html

Karsten, you could split your macro and call each part from an "Action Tool"
toolbar button. You should remember to use global variables if you want to
share variables between macros.

If you don't want to use toolbar buttons because you need some special tools
installed, you can call bits of macro code or run macros files from an
"Action Bar" with buttons reflecting the proccessing steps. See
http://imagejdocu.tudor.lu/Members/jmutterer/Action_Bar/

Jerome

On 6/27/07, Karsten Rodenacker <[hidden email]> wrote:

>
> Hi, I have a possibly minor problem:
> Inside a macro I would like to switch over into interactive mode e.g.
> to correct manually a mask automatically generated by "setThreshold
> ()" and "Convert to Mask" and than after finishing corrections to
> proceed with the macro. As far as I see "setBatchMode(false)" does
> not allow to interrupt macro processing.
>
> Thanks in advance
> KArsten
>