Login  Register

Re: shortcut for macro

Posted by seb-7 on May 06, 2008; 3:57pm
URL: http://imagej.273.s1.nabble.com/Aquacosmos-files-tp3696320p3696324.html

Hanjun Guan wrote:
> Dear all:
>
> I recorded a macro for processing my images and I am wondering whether it is possible to assign a shortcut (hotkey)

Hello,

Yes you can assign a shortcut to a macro:

macro "HotKeyTest [F2]"
{
showMessage("very useful macro");
}

It should work, assuming F2 is not already registered or trapped by your
operating system.

full description is there:
http://rsb.info.nih.gov/ij/developer/macro/macros.html#shortcuts

regards,

sebastien