Re: Definig keywords?
Posted by Wayne Rasband on Feb 01, 2006; 4:36pm
URL: http://imagej.273.s1.nabble.com/Definig-keywords-tp3703864p3703865.html
> I'm new with ImageJ and I have a simple problem. I have created a
> plugin that has two different numeric fields. This works fine, but now
> I would like to create a macro which uses this plugin and when I'm
> using the macro recorder to create the macro, these numeric fields has
> the same keyword. This causes error to the result, because the plugin
> uses only first number as the parameter in both numeric fields. So how
> can I define these keywords?
The keywords generated by the macro recorder are based on the first
word of the field label. For example, if a dialog box has two numeric
fields with these labels
Sensor Width: ______
Sensor Height: ______
then the recorder will record two identical "sensor=" labels. There are
two ways around this problem. Either change the labels so the first
word is unique, for example
Width of Sensor: ______
Height of Sensor: ______
or use underscores
Sensor_Width: ______
Sensor_Height: ______
-wayne