Purging Marcros using a macro

Started by hterzian, May 29, 2006, 02:12:10 PM

Previous topic - Next topic

hterzian

I was wonderin if there was a way of purging macro with delays using another macro..

I was llok at this to make sure that if I have a looped macro , I can stop it without having to use the Purge tool on the PC tool.

steven r

Best way would be to use a flag that you could clear with another macro.

eg. Create a dummy appliance module say M2. This is needed to loop macro - M2. Then create 3 macros "M1 ON", "M1 OFF" and "M2". Also use flag 1.

Macro - M1 ON
Set flag 1 on
M2 ON

Macro - M1 OFF
Set flag 1 off

Marco - M2 ON
If flag 1 is set...
[enter commands you wish]
M2 ON

You would start things with the "M1 ON" macro and stop with the "M1 OFF" macro. This would not do a true purge but would exit M2 after completing a loop. This is actually preferable in most cases as you can predict the end condition of your controlled modules by finishing the M2 loop.

See also this discussion.
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

SMF spam blocked by CleanTalk