Login  Register

Re: shortcut for macro

Posted by Michael Schmid on May 06, 2008; 4:03pm
URL: http://imagej.273.s1.nabble.com/Aquacosmos-files-tp3696320p3696323.html

Hi Hanjun, Joachim,

it is even more simple, see the documentation
   http://rsb.info.nih.gov/ij/developer/macro/macros.html#shortcuts

e.g.

     macro "Macro 1 [a]" {
         print("The user pressed 'a'");
     }

Michael
________________________________________________________________

On 6 May 2008, at 18:00, Joachim Wesner wrote:

> Hi Hanjun,
>
> you should be able to assign a shortcut! If you copy the macro to the
> plugins folder and use a name that
> includes "_", you should see your macro as a command under  
> "Plugins" (you
> will need to restart ImageJ
> or "install" the macro for this) and can assign your shortcut!
>
> Cheers
>
>
> ImageJ Interest Group <[hidden email]> schrieb am 06.05.2008  
> 17:27:31:
>
>> Dear all:
>>
>> I recorded a macro for processing my images and I am wondering
>> whether it is possible to assign a shortcut (hotkey) for it.  I
>> tried the submenu shortcuts under plugins to creat shortcut but it
>> only allows me to select commands.   Or if someone could give me an
>> instruction how to put the macro into the toolbar, that will work
>> for me too.  Thanks a lot!
>>
>> ------------------
>> Hanjun Guan
>> 2008-05-06
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________