*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#setKeyDownJan 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
>
>