Login  Register

Betr.: Re: Keyboard Shortcuts to Macros

Posted by Kaitlin Keim on Jul 15, 2005; 3:18pm
URL: http://imagej.273.s1.nabble.com/Betr-Re-Keyboard-Shortcuts-to-Macros-tp3705255.html

Hi Wayne,
I've seen the documentation, and the section on macros reccommends the
following syntax:

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



Do you simply enter this text in the top of the macro file? When I do this,
it doesn't call the macro when I hit the shortcut key.

Thanks,
Kaitlin



                                                                                                                                     
                      Wayne Rasband            Aan:      [hidden email]                                                          
                      <[hidden email]>            cc:                                                                                    
                      Verzonden door:   Onderwerp:       Re: Keyboard Shortcuts to Macros                                            
                      ImageJ Interest                                                                                                
                      Group                                                                                                          
                      <[hidden email].                                                                                              
                      GOV>                                                                                                            
                                                                                                                                     
                                                                                                                                     
                      15-07-2005 15:19                                                                                                
                      Antwoord a.u.b.                                                                                                
                      aan ImageJ                                                                                                      
                      Interest Group                                                                                                  
                                                                                                                                     
                                                                                                                                     




> I would like to create a keyboard shortcut that will run a
> macro  I have  written.  I'm sure this is a simple process,
> but I'm  having difficulty figuring it out.  Suggestions?

There is online documentation at
"http://rsb.info.nih.gov/ij/developer/macro/macros.html".

-wayne