Please login or register.

Login with username, password and session length

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

hterzian

  • 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.
Logged

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
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.
Logged
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. :)
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.