Assign a shortcut to select Selection Rotator

I want to create a shortcut to toggle tool bar selections (i.e. polygon, line, selection rotator, etc…) on and off without having to click on them with the mouse however it doesn’t seem that this is possible to do with ‘assign shortcuts’ as that tab is dedicated to assigning commands (which this obviously isn’t).

Hi @twchapman!

Take a look at this example macro: https://imagej.net/macros/ToolShortcuts.txt

You can adapt it to suit your particular needs (either for the specific tools or their shortcuts).

The autocomple feature of the script editor will help you find all the available options (even for custom tools using id):

Cheers!
Nico