Re: ImageJ window - Always on Top!
Posted by Wayne Rasband on Sep 04, 2008; 1:37pm
URL: http://imagej.273.s1.nabble.com/ImageJ-window-Always-on-Top-tp3694763p3694770.html
On Sep 4, 2008, at 3:30 AM, Ved Sharma wrote:
> Hi,
>
> Is there a way to keep the ImageJ main window "always on Top" of other
> applications in Windows XP?
You can do this using a one line Javascript program (requires ImageJ
1.41):
IJ.getInstance().setAlwaysOnTop(true);
To test it, copy the line above to the clipboard, switch to ImageJ,
type shift+n (File>New>Text Window), type ctrl+v (Edit>Paste), then
type ctrl-j (Macros>Evaluate Javascript). Use the Edit>Zap Gremlins
command if you get an "illegal character" error.
To create and "Always on Top" command, save the script in the plugins
folder as "Always_on_Top.js", restart ImageJ and there will be an
"Always on Top" command in the Plugins menu.
To have ImageJ run this command when it launches, add the following to
the beginning of the ImageJ/macros/StartupMacros.txt file:
macro "AutoRun" {
run("Always on Top");
}
-wayne