Please login or register.

Login with username, password and session length

Author Topic: Purging Marcros using a macro  (Read 4672 times)


  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Purging Marcros using a macro
« on: May 29, 2006, 02:12:10 PM »

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

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Purging Marcros using a macro
« Reply #1 on: May 29, 2006, 05:04:15 PM »

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

Macro - M1 OFF
Set flag 1 off

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

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. :) | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 All rights reserved.