Re: Pause in a java plugin program

Posted by Aryeh Weiss on
URL: http://imagej.273.s1.nabble.com/Pause-in-a-java-plugin-program-tp3697005p3697016.html

What I meant was not a macro. It is a plugin called Wait_For_User.java which I
compiled and is installed in my plugins directory. Then, inside a macro, I call
it as follows:

run("Wait For User", "your prompt for the user");

I am then able to do whatever I want at that point, and then click ok to
continue the macro.

--aryeh


meastwood98 wrote:

> ok i've got the macro waitForUser(string); fine but cannot get this to work
> in the java plugin, can anyone give me the code to do this?
>
> Thankyou
> Mark
>
>
>
> Aryeh Weiss wrote:
>> meastwood98 wrote:
>>> If i wanted to put a pause in my java plugin program so that the user
>>> could
>>> select and cut part of the image and then press an "ok" type button to
>>> carry
>>> on with the program, is this possible and if so how?
>>>
>> Try this:
>>
>> http://imagejdocu.tudor.lu/imagej-documentation-wiki/plugins/wait_for_user
>>
>> A while ago Michael Schmid pointed me at this, and it solved my problem,
>> so I am
>> just passing the favor on.
>>
>> --aryeh
>> --
>> Aryeh Weiss
>> School of Engineering
>> Bar Ilan University
>> Ramat Gan 52900 Israel
>>
>> Ph:  972-3-5317638
>> FAX: 972-3-7384050
>>
>>
>