macros

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

macros

donny008
hello

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.

please help

don
Reply | Threaded
Open this post in threaded view
|

Re: macros

Wayne Rasband
> 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
Reply | Threaded
Open this post in threaded view
|

Re: macros

donny008
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
Reply | Threaded
Open this post in threaded view
|

Re: macros

donny008
hey there

i corrected, it was rather silly :=

thnku wayne


don


On Thu, Apr 9, 2009 at 4:52 PM, Donny George <[hidden email]> wrote:

> 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
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: macros

Harry Parker
In reply to this post by donny008
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