Bug with the showMessageWithCancel Macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug with the showMessageWithCancel Macro

Lim Soon Yew
Dear All,

When I used the macro command "showMessageWithCancel" as shown below, the macro does not exit when I click the "Cancel" button on the pop-up message. Did I made a mistake in the syntax or is this a bug? I am using Fiji 1.45l. Thank you for your help.

showMessageWithCancel("Sampler","Run Test?");
print("Running Test Now");

Best Regards,
John
Reply | Threaded
Open this post in threaded view
|

Re: Bug with the showMessageWithCancel Macro

Rasband, Wayne (NIH/NIMH) [E]
On Sep 9, 2011, at 7:21 AM, Lim Soon Yew wrote:

> Dear All,
>
> When I used the macro command "showMessageWithCancel" as shown below, the macro does not exit when I click the "Cancel" button on the pop-up message. Did I made a mistake in the syntax or is this a bug? I am using Fiji 1.45l. Thank you for your help.
>
> showMessageWithCancel("Sampler","Run Test?");
> print("Running Test Now");

This appears to be a bug in the Fiji Script Editor. You can work around it by using the ImageJ text editor (File>New>Text Window) instead of the Script Editor. You should use Fiji's Help>Report a Bug command to report this bug.

Best regards,

-wayne