Thanks! That's exactly what I was looking for.
- Justin
Bill Mohler wrote:
>
> From the Built-in Macro Functions web page:
>
>
http://rsb.info.nih.gov/ij/developer/macro/functions.html>
> getNumber("prompt", defaultValue)
> Displays a dialog box and returns the number entered by the user. The
> first argument is the prompting message and the second is the value
> initially displayed in the dialog. Exits the macro if the user clicks
> on "Cancel" in the dialog. Returns defaultValue if the user enters an
> invalid number. See also: Dialog.create.
>
>
>> I have a number of macros where there is a threshold step. Since the
>> auto threshold doesn't choose appropriate limits, I have the limits
>> hardcoded into the macro, but since they change from day to day,
>> every time I run the macro, I have to open it, change the numbers,
>> save, install, then run the macro.
>>
>> Is there any way I could put those limits in as variable and have
>> ImageJ pop up a dialog box asking me to input limits when the macro
>> is run?
>>
>> Thanks
>>
>> Justin Walker
>> University of Maryland
>
>