Login  Register

Re: closing non-picture windows from a macro

Posted by Fabrice Senger on Apr 06, 2009; 2:58pm
URL: http://imagej.273.s1.nabble.com/closing-non-picture-windows-from-a-macro-tp3693084p3693085.html

danibodor a écrit :
> this is probably a very futile question, but I am new to building macros in imagej.
>
> I have a macro that is measuring all kinds of stuff for me and then at the end of the run i want to close the log, roimanager and results windows. I already know that the close() function does not work for this, because as it states on the site: "This function has the advantage of not closing the "Log" or "Results" window when you meant to close the active image. "
>
> So how do you close these windows from a macro?
>  
you can try this :

 selectWindow("Results");
   run("Close");
selectWindow("ROI Manager");
run("Close");


Fabrice.

--
Senger Fabrice