Re: Keyboard shortcuts for the selection tools
Posted by
Ruszkai Ákos on
Feb 13, 2010; 10:11pm
URL: http://imagej.273.s1.nabble.com/Keyboard-shortcuts-for-the-selection-tools-tp3689398p3689400.html
On 13 February 2010 22:44, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]> wrote:
> On Feb 13, 2010, at 3:58 PM, Ákos Ruszkai wrote:
>
>
> macro 'Rectangle [f1]' {setTool('rectangle')}
> macro 'Oval [f2]' {setTool('elliptical')}
> macro 'Polygon [f3]' {setTool('brush')}
> macro 'Freehand [f4]' {setTool('polygon')}
> macro 'Straight Line [f5]' {setTool('freehand')}
> macro 'Segmented Line [f6]' {setTool('line')}
> macro 'Angle [f7]' {setTool('freeline')}
> macro 'Crosshair [f8]' {setTool('arrow')}
> macro 'Wand [f9]' {setTool('angle')}
> macro 'Text [f10]' {setTool('multipoint')}
> macro 'Magnifying Glass [f11]' {setTool('wand')}
> macro 'Freeline [f12]' {setTool('zoom')}
>
> Add them to ImageJ/macros/StartupMacros.txt and they will be automatically
> installed when ImageJ starts.
>
> -wayne
>
Thank you very much! It work's like charm, though I had to change some of
the code.
What do you know: following the documentation about macros, I've found the
example of Shortcuts.txt. I've opened my mouth too early again. Now I feel
really dumb.
Another idea comes to my mind: so given with these macros, would be be
possible to create a shortcut, that rebinds itself after getting triggered?
Eg. if I press the button once, it changes to tool x, on the second press it
changes to y, etc. etc. ?
Regards,
Ákos