2 questions about macro command

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

2 questions about macro command

Tomohiro Shirakawa
Dear all,

Please let me have 2 questions on macro command.

1.
Is it possible to pause macro, setting the interval?
If possible, please tell me the command. 

2.
I have referred to “ImageJ Macro Language” page in ImageJ website,
but is there any site with more detailed instruction or command list
on the web?


Thanks a lot,

Tomohiro Shirakawa
Reply | Threaded
Open this post in threaded view
|

Svar: 2 questions about macro command

Fintan McEvoy-2
Taking a break!


Would the  command

wait(n)  


where "n" is the  time delay (in milliseconds) you want help?


Fintan



>>> Tomohiro Shirakawa <[hidden email]> 03-04-2007 10:18 >>>
Dear all,

Please let me have 2 questions on macro command.

1.
Is it possible to pause macro, setting the interval?
If possible, please tell me the command.

2.
I have referred to “ImageJ Macro Language” page in ImageJ website,
but is there any site with more detailed instruction or command list
on the web?


Thanks a lot,

Tomohiro Shirakawa
Reply | Threaded
Open this post in threaded view
|

Re: 2 questions about macro command

Gabriel Landini
In reply to this post by Tomohiro Shirakawa
On Tuesday 03 April 2007 09:18:18 Tomohiro Shirakawa wrote:
> 1.
> Is it possible to pause macro, setting the interval?
> If possible, please tell me the command. 

You can delay execution with
wait(time_in_ms);
but you cannot pause, do something else interactively and carry on.
For that you could do 2 macros and run one after the other, doing the
interactive bit in between the 2 runs.

> 2.
> I have referred to “ImageJ Macro Language” page in ImageJ website,
> but is there any site with more detailed instruction or command list
> on the web?

Help>Macro Functions
takes you to:

http://rsbweb.nih.gov/ij/developer/macro/functions.html

G.
Reply | Threaded
Open this post in threaded view
|

Re: 2 questions about macro command

Colin Sturm
In reply to this post by Tomohiro Shirakawa
To pause my macro I create a new small image and set it to the side.  I
use a while statement to check it is open.  Once I close the image, the
macro continues.

Code:
newImage("Close Me When Done With User Input", "8-bit White", 16, 16, 1);
dummyImage=getImageID();
while (isOpen(dummyImage)) {
            wait(50);
}



Tomohiro Shirakawa wrote:

> Dear all,
>
> Please let me have 2 questions on macro command.
>
> 1.
> Is it possible to pause macro, setting the interval?
> If possible, please tell me the command.
>
> 2.
> I have referred to “ImageJ Macro Language” page in ImageJ website,
> but is there any site with more detailed instruction or command list
> on the web?
>
>
> Thanks a lot,
>
> Tomohiro Shirakawa
>
>