Re: Apology and a question

Posted by Wayne Rasband on
URL: http://imagej.273.s1.nabble.com/Apology-and-a-question-tp3701250p3701253.html

You hold down the alt key and select File>Open Next to open the
previous image. In a macro, call setKeyDown("alt") to simulate holding
down the alt key.

    macro "Prevous Image Action Tool - C037T4d14<" {
        setKeyDown("alt");
        run("Open Next");
   }

Action tools require ImageJ v1.37t or later.

-wayne

On Oct 20, 2006, at 10:42 AM, Jon Harman wrote:

> Hi,
>
> In a previous post I complained about ImageJ zooming behavior. It
> turns out that my issues with zooming had been fixed in August by
> adding the "zoom indicator".
>
> My question:
> In playing with the new "Action Tool" functionality I tried adding a <
> "previous image" and a > "next image macros.  However I can't get the
> previous image macro to work.  This is not a problem with the action
> tool, I can't seem to pass the argument "backward" to the Open Next
> routine.  What am I doing wrong?
>
> Jon
>
>
>    macro "Prevous Image Action Tool - C037T4d14<" {
>        run("Open Next","backward");
>   }
>
>    macro "Next Image Action Tool - C037T4d14>" {
>        run("Open Next");
>   }
>