Login  Register

Re: macros

Posted by Harry Parker on Apr 10, 2009; 12:56pm
URL: http://imagej.273.s1.nabble.com/macros-tp3692993p3692996.html

Hi Donny,
I suggest you study the documentation on the macro language at
http://rsb.info.nih.gov/ij/developer/macro/macros.html

The 1st "Hello World" example demonstrates that strings do not need to be declared, but must be in quotes.
--
Harry Parker
Senior Imaging Systems Engineer







________________________________
From: Donny George <[hidden email]>
To: [hidden email]
Sent: Thursday, April 9, 2009 10:52:23 AM
Subject: Re: macros

hey wayne

thankyou very much, it was the waitForUser which i needed.

but could you tell me how do i declare the strings. i used it this way

string Proceed;
    string Press OK;

       waitForUser(Proceed, Press (OK));

this is wrong as it returns error undefined variable string

???

don




On Thu, Apr 9, 2009 at 4:12 PM, Wayne Rasband <[hidden email]> wrote:

> i am making up a macro using the record feature. i wanted to use "hit
>> enter"
>> in between each of the steps during execution. can someone help me with
>> this. or a command or format for this requirement.
>>
>
> You can use the macro debugger, available in ImageJ 1.42e and later. Press
> ctrl-d *Debug>Debug Macro) to start executing the macro and ctrl-e
> (Debug>Step) to execute the next statement.
>  http://rsb.info.nih.gov/ij/developer/macro/macros.html#debugger
>
> You can also use the waitForUser() macro function to pause a macro.
>  http://rsb.info.nih.gov/ij/developer/macro/functions.html#waitForUser
>
> -wayne
>



--
Donny George