adding first slice in a macro

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

adding first slice in a macro

Jan Eglinger-5
Dear all,

what's the way to add a slice at the first position of a stack within a
macro?
I know you can hold down the ALT key, but how is this performed in a macro?

Thanks for help,
jan

--
Jan Eglinger
PhD Student, Eckhard Lammert group
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 Dresden
Germany
Reply | Threaded
Open this post in threaded view
|

Re: adding first slice in a macro

Colin Sturm
*setKeyDown(keys)*
Simulates pressing the shift, alt or space keys, where /keys/ is a
string containing some combination of "shift", "alt" or "space". Any key
not specified is set "up". Use /setKeyDown("none")/ to set all keys in
the "up" position. With ImageJ 1.38e or later, call /setKeyDown("esc")/
to abort the currently running macro or plugin.
http://rsb.info.nih.gov/ij/developer/macro/functions.html#setKeyDown

Jan Eglinger wrote:

> Dear all,
>
> what's the way to add a slice at the first position of a stack within a
> macro?
> I know you can hold down the ALT key, but how is this performed in a macro?
>
> Thanks for help,
> jan
>
>