Login  Register

Need Macro command to Click OK in a window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Need Macro command to Click OK in a window

Citron, Bruce
How does one automatically do things like click an OK button while running
an ImageJ Macro?

We have a macro to process multiple images with ShapeLogic however there is
a pause we can¹t get past because the ShapeLogic routine generates a window
requiring a click OK to continue.

(This is during an analysis to determine the number of cells that are
positive in the green and red channels vs. cells that are just positive in
the green channel while intentionally ignoring cells that are just positive
in the red channel.)
--
Bruce A. Citron, Ph.D., Bay Pines VA
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Need Macro command to Click OK in a window

Jerome Mutterer-3
Bruce,
try the IJ_Robot plugin by Gabriel Landini.
http://www.dentistry.bham.ac.uk/landinig/software/software.html

Sincerely,

Jerome*
*
On Tue, Aug 30, 2011 at 12:18 AM, Bruce Citron <[hidden email]> wrote:

> How does one automatically do things like click an OK button while running
> an ImageJ Macro?
>
> We have a macro to process multiple images with ShapeLogic however there is
> a pause we can¹t get past because the ShapeLogic routine generates a window
> requiring a click OK to continue.
>
> (This is during an analysis to determine the number of cells that are
> positive in the green and red channels vs. cells that are just positive in
> the green channel while intentionally ignoring cells that are just positive
> in the red channel.)
> --
> Bruce A. Citron, Ph.D., Bay Pines VA
>
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Need Macro command to Click OK in a window

Citron, Bruce
Jerome-
That worked, and useful to know about for other things, but the ShapeLogic
routine turns out to pop up that query window in the middle of its action
and I can¹t easily edit its source code.

I¹ve switched to the Color thresholding, analyze particles, generate the
ROIs, and then I can process the ROIs on slices in a stack containing the
colors I need to get the output I need with just the standard ImageJ
functions- and I¹m appreciating their power more and more all the time.
Thanks,
Bruce


On 8/30/11 15:57 , "Jerome Mutterer" <[hidden email]>
wrote:

> Bruce,
> try the IJ_Robot plugin by Gabriel Landini.
> http://www.dentistry.bham.ac.uk/landinig/software/software.html
>
> Sincerely,
>
> Jerome*
> *
> On Tue, Aug 30, 2011 at 12:18 AM, Bruce Citron <[hidden email]> wrote:
>
>> > How does one automatically do things like click an OK button while running
>> > an ImageJ Macro?
>> >
>> > We have a macro to process multiple images with ShapeLogic however there is
>> > a pause we can¹t get past because the ShapeLogic routine generates a window
>> > requiring a click OK to continue.
>> >
>> > (This is during an analysis to determine the number of cells that are
>> > positive in the green and red channels vs. cells that are just positive in
>> > the green channel while intentionally ignoring cells that are just positive
>> > in the red channel.)
>> > --
>> > Bruce A. Citron, Ph.D., Bay Pines VA
>> >
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Need Macro command to Click OK in a window

chenyanpei
In reply to this post by Jerome Mutterer-3
It is great!

2011/8/30 Jerome Mutterer <[hidden email]>

> Bruce,
> try the IJ_Robot plugin by Gabriel Landini.
> http://www.dentistry.bham.ac.uk/landinig/software/software.html
>
> Sincerely,
>
> Jerome*
> *
> On Tue, Aug 30, 2011 at 12:18 AM, Bruce Citron <[hidden email]>
> wrote:
>
> > How does one automatically do things like click an OK button while
> running
> > an ImageJ Macro?
> >
> > We have a macro to process multiple images with ShapeLogic however there
> is
> > a pause we can¹t get past because the ShapeLogic routine generates a
> window
> > requiring a click OK to continue.
> >
> > (This is during an analysis to determine the number of cells that are
> > positive in the green and red channels vs. cells that are just positive
> in
> > the green channel while intentionally ignoring cells that are just
> positive
> > in the red channel.)
> > --
> > Bruce A. Citron, Ph.D., Bay Pines VA
> >
>



--
Chen Yanpei, phD
MssMat
Ecole Centrale Paris
Grande voie des vignes
92295 Châtenay Malabry
Paris, France