|
On Wednesday 04 August 2010, you wrote:
> When I use AutoRun() to run
the plugin that is installed in the
> toolbar at startup, I get the error
message "There are no images open" in a
> window labeled "No Image", and the
tool selected on the toolbar is still
> the Rectangular Selections tool. The
error message seems to appear after
> the plugin's setup method and before
the run method. Is there anyway to
> avoid this issue or another approach to
setting the default toolbar tool
> (that is a plugin) prior to opening an
image?
Please show what your code is, otherwise it is impossible to guess
what you are doing and why it does not work.
To change the default tool,
which is what you asked in the first instance, open the StartupMAcros.txt
file which is in the /macros folder.
After the 3 lines with a preceeding
comment "//Global variables"
you type:
macro "AutoRun" {
setTool("hand");
}
Save the file.
When you restart IJ, the tool selected
should be the hand instead of the rectangle tool.
You can do similarly for
the other buttons.
To know how to call the other tools, run the macro
recorded and press the buttons.
G.
|