Macro Nesting

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Post Reply
poet99
Posts: 27
Joined: Mon Jan 05, 2004 9:28 pm

Macro Nesting

Post by poet99 »

I have done research on a few terms that I saw and did not understand in some extenders readme files, but one remains: macro nesting.

What does that mean? Is it the ability for a macro to contain another macro?

Thanks

François
johann83
Posts: 66
Joined: Sun Aug 03, 2003 6:18 am
Location: Pittsburgh, PA

Re: Macro Nesting

Post by johann83 »

poet99 wrote:Is it the ability for a macro to contain another macro?
Yes, it is the ability for one macro to call another macro.

In this way you can get around the limitation on the length of a single macro by having one macro call another. You must still be careful that the overall number of keys yet to be processed for the macro does not exceed some pre-defined limit, however. This is usually extender/remote specific, I believe.

Matt
johnsfine
Site Admin
Posts: 4766
Joined: Sun Aug 10, 2003 5:00 pm
Location: Bedford, MA
Contact:

Post by johnsfine »

While you can use macro nesting or concatenation as a way around the 15 step limit, few people want macros over 15 steps anyway.

Macro nesting is more useful just as a way to make the structure of your whole collection of macros smaller, or simpler, and/or make the purpose of parts of a macro more obvious. In other words, if you want to use the same sequence of steps in a few different macros it's convenient to be able to define that as a macro itself and use just that macro each place you want that sequence of steps.
Post Reply