The macro is too sensitive to clicks

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

The macro is too sensitive to clicks

Avital Steinberg
Hi,
I have a macro which is supposed to run in batch mode. However, if I click
on the ROI manager by mistake, I get an error message saying that: "only
one item can be selected" and the program stops running.

Is there any way to turn off the event listening, since this macro is not
supposed to be interactive?

Thanks,
Avital

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

Re: The macro is too sensitive to clicks

ctrueden
Hi Avital,

Have you tried running your macro headless from the command line?

http://imagej.net/Headless

Then no GUI will be shown, and there will be no chance of the operation
becoming compromised by normal user actions.

Or if the macro cannot run headless for some reason, you could run it in an
isolated way somehow (e.g., in a VM) to avoid tainting the processing.

Regards,
Curtis

On Mon, Nov 2, 2015 at 3:26 AM, Avital Steinberg <[hidden email]>
wrote:

> Hi,
> I have a macro which is supposed to run in batch mode. However, if I click
> on the ROI manager by mistake, I get an error message saying that: "only
> one item can be selected" and the program stops running.
>
> Is there any way to turn off the event listening, since this macro is not
> supposed to be interactive?
>
> Thanks,
> Avital
>
> --
> 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: The macro is too sensitive to clicks

Avital Steinberg
Hi Curtis,
I didn't know about this option - I will try it.

Thanks,
Avital

On Mon, Nov 2, 2015 at 8:26 PM, Curtis Rueden <[hidden email]> wrote:

> Hi Avital,
>
> Have you tried running your macro headless from the command line?
>
> http://imagej.net/Headless
>
> Then no GUI will be shown, and there will be no chance of the operation
> becoming compromised by normal user actions.
>
> Or if the macro cannot run headless for some reason, you could run it in an
> isolated way somehow (e.g., in a VM) to avoid tainting the processing.
>
> Regards,
> Curtis
>
> On Mon, Nov 2, 2015 at 3:26 AM, Avital Steinberg <
> [hidden email]>
> wrote:
>
> > Hi,
> > I have a macro which is supposed to run in batch mode. However, if I
> click
> > on the ROI manager by mistake, I get an error message saying that: "only
> > one item can be selected" and the program stops running.
> >
> > Is there any way to turn off the event listening, since this macro is not
> > supposed to be interactive?
> >
> > Thanks,
> > Avital
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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