Login  Register

Re: Pause/resume macro?

Posted by Herbie on Apr 30, 2017; 5:03pm
URL: http://imagej.273.s1.nabble.com/Pause-resume-macro-tp5001108p5018642.html

Dear,

if your post was a question, this may be an answer:

===============================
waitForUser(string)
     Halts the macro and displays string in a dialog box. The macro
proceeds when the user clicks "OK". Unlike showMessage, the dialog box
is not modal, so the user can, for example, create a selection or adjust
the threshold while the dialog is open. To display a multi-line message,
add newline characters ("\n") to string. This function is based on
Michael Schmid's Wait_For_User plugin. Example: WaitForUserDemo.

waitForUser(title, message)
     This is a two argument version of waitForUser, where title is the
dialog box title and message is the text dispayed in the dialog.

waitForUser
     This is a no argument version of waitForUser that displays "Click
OK to continue" in the dialog box.
===============================

Regards

Herbie


::::::::::::::::::::::::::::::::
Am 30.04.17 um 18:33 schrieb LP:

> Dear All,
>
> I think that John Oreopoulos (Dec 11, 2012) had a very good question:
>
> Can we pause a macro at an arbitrary moment so we can do something else, and
> then resume the macro later?
>
> This topic has more than 2370 views so I assume that many people wondered
> the same thing.
>
>
> Thank you
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Pause-resume-macro-tp5001108p5018641.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