waitForUser command

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

waitForUser command

William Nicolas
Hello,

I use the waitForUser command after opening multiple images in a folder, to allow  the user to discard the unwanted images. It works fine as long as the last image opened is not discarded. If I dare to discard the last opened image, the waitForUser dialog box disappears and I am unable to go forward with the macro. I really don’t know how to adresse this problem. It has been doing this to me for a while, do you have a way to circumvent this ?

Thanks ! Regards,

William
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: waitForUser command

Rasband, Wayne (NIH/NIMH) [E]
> On Jan 6, 2015, at 4:27 AM, William Nicolas <[hidden email]> wrote:
>
> Hello,
>
> I use the waitForUser command after opening multiple images in a folder, to allow  the user to discard the unwanted images. It works fine as long as the last image opened is not discarded. If I dare to discard the last opened image, the waitForUser dialog box disappears and I am unable to go forward with the macro. I really don’t know how to adresse this problem. It has been doing this to me for a while, do you have a way to circumvent this ?

The waitForUser dialog is normally associated with the active image window, causing it to be closed when the image is closed. With the latest ImageJ daily build (1.49o10), waitForUser(msg) associates the dialog with the "ImageJ" window when 'msg' starts with "IJ: “. This prevents the dialog from being closed when the active image is closed.

-wayne



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html