waitForUser with multiple options

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

waitForUser with multiple options

LP
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
LP
Reply | Threaded
Open this post in threaded view
|

waitForUser with multiple options

LP
Dear ImageJ community,

I'm writing a macro where at some point I would like to be asked whether I
accept or not a ROI. If I accept then continue the macro, if not go to the
next file and repeat.

Is there a function similar to waitForUser(“Title”, “Message”) but with
multiple options ?


Any suggestion and help will be very appreciated.
Thank you very much for your help in advance,
LP



--
View this message in context: http://imagej.1557.x6.nabble.com/waitForUser-with-multiple-options-tp5017885.html
Sent from the ImageJ mailing list archive at Nabble.com.

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

Re: waitForUser with multiple options

Jürgen Gluch
You can check if ALT or SHIFT were pressed and than use IF to select the
proper response.

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

Re: waitForUser with multiple options

Michael Schmid-3
In reply to this post by LP
Hi LP,

there was a similar discussion in this mailing a few months ago.
The final solution was having the user press the SHIFT key for one
option. See

https://list.nih.gov/cgi-bin/wa.exe?A2=ind1610&L=IMAGEJ&P=R28112

Michael
________________________________________________________________
On 13/01/2017 21:10, l p wrote:

> Dear ImageJ community,
>
> I'm writing a macro where at some point I would like to be asked whether I
> accept or not a ROI. If I accept then continue the macro, if not go to the
> next file and repeat.
>
> Is there a function similar to waitForUser(“Title”, “Message”) but with
> multiple options ?
>
>
> Any suggestion and help will be very appreciated.
> Thank you very much for your help in advance,
> LP
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/waitForUser-with-multiple-options-tp5017885.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: waitForUser with multiple options

Herbie
In reply to this post by LP
Good day 1 p,

what about

    getBoolean("Continue?");

HTH

Herbie

:::::::::::::::::::::::::::::::::
Am 13.01.17 um 21:10 schrieb l p:
> Dear ImageJ community,
>
> I'm writing a macro where at some point I would like to be asked
> whether I accept or not a ROI. If I accept then continue the macro,
> if not go to the next file and repeat.
>
> Is there a function similar to waitForUser(“Title”, “Message”) but
> with multiple options ?
>
>
> Any suggestion and help will be very appreciated. Thank you very much
> for your help in advance, LP