ERDrPC Posted December 15, 2021 Share Posted December 15, 2021 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? Quote Link to comment Share on other sites More sharing options...
chopedogg88 Posted December 15, 2021 Share Posted December 15, 2021 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. Quote Link to comment Share on other sites More sharing options...
ERDrPC Posted December 15, 2021 Author Share Posted December 15, 2021 Thanks. That's what I needed. There is no "pause" or "resume" programming events I assume Quote Link to comment Share on other sites More sharing options...
Cyknight Posted December 16, 2021 Share Posted December 16, 2021 On 12/14/2021 at 7:50 PM, ERDrPC said: Thanks. That's what I needed. There is no "pause" or "resume" programming events I assume Only delay xxxx time Quote Link to comment Share on other sites More sharing options...
Cyknight Posted December 16, 2021 Share Posted December 16, 2021 Alternatively, you can fire the next line of programming in the macro, or create a separate macro, and fire that FROM the other macro Quote Link to comment Share on other sites More sharing options...
Cinegration Posted December 16, 2021 Share Posted December 16, 2021 Like inception the movie Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted December 17, 2021 Share Posted December 17, 2021 Or use a while loop (to pause code until a variable s changed at the end of the macro) but that requires a dealer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.