Jump to content
C4 Forums | Control4

Do macros jump back to the initially calling code


ERDrPC

Recommended Posts

Quick question - I'm tackling a bigger programming issue. 

If I insert some of the code in a macro will the next step in the event return to the calling code fire automatically so that the next line runs after the macro has completed?  Or does completing the macro also complete the calling event?

Link to comment
Share on other sites


It will return back and continue executing the programming in the calling event.  note that Macros run asynchronously, so when you execute a Macro, it will fire off that programming but then immediately continue to execute the rest of the programming in the calling event, without waiting for the Macro to "complete".  This can lead to unintended results...so be careful.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.