macro and Button with ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

macro and Button with ImageJ

Juan Francisco-2
Dear all:
  does anyone how to create a button to put on the menu bar of ImageJ in order to execute a previously created macro?
  Thank you very much!!
  JFC

 
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
Reply | Threaded
Open this post in threaded view
|

Re: macro and Button with ImageJ

James Herbers
Juan Francisco wrote:

> Dear all:
>   does anyone how to create a button to put on the menu bar of ImageJ in order to execute a previously created macro?
>   Thank you very much!!
>   JFC
>
>  
> ---------------------------------
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>  
To add a macro to the tool bar in ImageJ see
http://rsb.info.nih.gov/ij/developer/macro/macros.html#tools
It shows you how to do this.

James H.
Reply | Threaded
Open this post in threaded view
|

Re: macro and Button with ImageJ

oliver2013
Hi

I tried to install a button that runs a macro I wrote

macro "SCALE Action Tool - C000ecDfcDfdDfeDff" {
doCommand("SCALE);
}

It works, the button appears but when I restart imageJ it's gone

I saved my macro as a  .txt file in the macro folder

What do I need to do to keep that button in the toolbar after restarting ImageJ?

tnx