Re: Default to tool other than "Rectangular Selections" at start up
Posted by kacollins on Aug 06, 2010; 7:03pm
URL: http://imagej.273.s1.nabble.com/Default-to-tool-other-than-Rectangular-Selections-at-start-up-tp3687334p3687338.html
Thank you. The setTool command in the autoRun macro does select the desired tool at startup, although for custom tools, apparently one needs to determine the tool number and use that rather than the name (thanks Wayne). Other tips from Wayne were to return "NO_IMAGE_REQUIRED" from the pluginfilter's setup method to avoid the "No Image" error message or to just use a plugin (as opposed to pluginfilter) and implement an Imagelistener to grab an image as it is being opened. ImageListener works beautifully, and with filetype associations setup appropriately in the OS along with the AutoRun macro, a double click on a file from the OS directory window (Windows Explorer in my case) opens ImageJ, loads the file, and runs the plugin with no additional keyboard commands or mouse clicks.
Thanks to all for your help,
Karen