Re: user prompts during macro run
Posted by
George Patterson on
Nov 04, 2013; 4:03pm
URL: http://imagej.273.s1.nabble.com/user-prompts-during-macro-run-tp5005440p5005441.html
Hi Ken,
Look at the examples at the sites listed below.
George
1. File Open and Save As
See
http://rsb.info.nih.gov/ij/macros/OpenDialogDemo.txt for File Open
See
http://rsb.info.nih.gov/ij/developer/macro/functions.html#S for saveAs
2. Prompting the user for data that could be used in a text field, which
would later be applied to the image as a flattened overlay.
http://rsb.info.nih.gov/ij/macros/DialogDemo.txtSee the addString/getString example.
3. Prompt the user to decide to invert the image at a specific point in the
analysis.
See the addCheckbox/getCheckbox example in the DialogDemo.txt. This will
return a boolean.
On Mon, Nov 4, 2013 at 10:03 AM, Ken George <
[hidden email]> wrote:
> Dear Group,
>
> I'm recording and editing my first macros and would like to learn how to
> prompt the user for input during a macro run and then return to the macro
> to complete the analysis.
>
> For example:
>
> 1. File Open and Save As
>
> 2. Prompting the user for data that could be used in a text field, which
> would later be applied to the image as a flattened overlay.
>
> 3. Prompt the user to decide to invert the image at a specific point in
> the analysis.
>
> Can someone point me towards relevant examples?
>
> Thank you in advance.
>
> -Ken
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html