Re: Keyboard shortcut for Tool Macro ?

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Keyboard-shortcut-for-Tool-Macro-tp3696789p3696790.html

> I wonder if it is possible to assign a keyboard shortcut to a macro
> inside a macro toolset. Just adding [key] like "My Tool Action Tool  
> [k]"
> in the declaration of the macro didn't work for me.

Add a macro to the toolset that uses the setTool function to select  
the tool.

     macro "Select My Tool [k]" {setTool(id);}

Where 'id' is 10 or 15-21, depending on the position of the tool.

-wayne