Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: Macro within a macro  (Read 12018 times)

Danny Rego

  • Guest
Macro within a macro
« on: December 07, 2004, 05:57:34 PM »

I would LOVE to see the ability for you to
trigger a macro from within another macro.

Also (along the same line), I would love to
have an ALIAS feature where you can have
X10 Code A1 control the same appliance/lamp
as M12...including dimmer commands.

While I'm at it...why not have the
DIM/BRIGHT commands be useable by macros????
Logged

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Macro within a macro
« Reply #1 on: December 07, 2004, 09:02:44 PM »

It can. I've built a conditional macros
that are called from within other macros. I
don't know if you have to have conditionals
to make it work.
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. :)

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #2 on: December 07, 2004, 10:00:46 PM »

You must, because I don't see that ability
anywhere?!  I can't drag a macro into a
macro...bah!!!  Don't tell me I have to
waste my $$$ on that module.  (the price
makes me mad)
Logged

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Macro within a macro
« Reply #3 on: December 08, 2004, 02:39:40 AM »

For each macro you wish to call, you will
need to make a dummy module.

e.g. If you want to call macro M1, make a
dummy module M1. Drag the dummy module M1
in where you you want to call your macro
M1. I believe a delay is helpful before or
after the call.

I have a macro that shuts off my lights and
appliance modules. It then calls a
conditional macro to turn the front porch
light back on if it is between dusk and
midnight.
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. :)

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #4 on: December 08, 2004, 11:15:56 AM »

Well...that's bloody stupid, and there
should be a nicer interface for doing this
stuff.

We shouldn't have to HACK good/usefully
functionality in there.  X10 should add it
in properly.

Thanks for the info though.  I will try it
soon.
Logged

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Macro within a macro
« Reply #5 on: December 08, 2004, 11:58:55 AM »

I don't think it was a planed / supported
feature to be able to have macros within
macros.

Be careful not to create and endless macro
loop by calling a macro that calls the
original macro. Unless one of the macros is
a conditional macro, you would need to stop
the loop yourself.
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. :)

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Macro within a macro
« Reply #6 on: December 08, 2004, 12:02:09 PM »

"planed" should be "planned" and
"and" should be "an" in the previous
message.
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. :)

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #7 on: December 08, 2004, 12:38:06 PM »

That's why I thought I'd bring it up here.
It's a very useful feature to have, and
they should add it to the software
OFFICIALLY.  (instead of us having to do
this hack-around)

Thanks again for the info though!
Logged

h j flynn

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 42
Re: Macro within a macro
« Reply #8 on: December 08, 2004, 04:55:39 PM »

There was a post sometime ago from X10
support about this, they stated the
currently they did not support MACRO's
Calling MACROs. It just happens to be
working, until someone reports a looping
problem, They may decide to plug the hole.  
Logged

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #9 on: December 20, 2004, 01:34:35 PM »

I can't get the macro from a macro hack
working at all.  I am becoming very unhappy
with my CM15A.  I have two different
remotes, running on seperate house codes,
and I want to share two rather lengthy
macros between them....that's all.  It is
really stupi that I have to make two
copies, just to do that.

I know about the trick where you setup a
SWITCH module with the same code as your
macro...but it as much as the windows
interface shows everything happening,
nothing actually gets switched in the house.

Buying this X10 product was a big mistake.
I can't trust it to run any sort of macro
reliably.
Logged

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #10 on: December 22, 2004, 11:32:49 PM »

Can anyone help me with my problem???  I am
going crazy here!!!  I am getting  so mad
with AHP it isn't even funny.  Please
follow what I'm writing and point  out
anything I may be doing wrong.

- I set up a BIG FANCY "ON" macro for code
M1.
- I set up a BIG FANCY "OFF" macro, also
for code M1.
- I add a simple switch module that also
uses code M1.

I click the switch module on/off in the
windows app, and the proper macro
runs...all is well (so far)

- I create another SIMPLE "ON" macro for
code A1, that contains one module the
switch (M1) I created above, and tells it
to switch on.
- I create another SIMPLE "OFF" macro for
code A1, that contains one module the
switch (M1) I created above, and tells it
to switch off.

From the windows interface again, I click
the A1 macro on/off, and voila....my BIG
FANCY M1 MACROS execute.    Now the
kicker...I setup a palmpad unit to  send
the A1 ON/OFF signal.  I press A1  on....I
see the windows interface light up  like a
christmas tree, where everything  appears
to have worked, however, NOTHING  HAS
ACTUALLY TURNED ON OR OFF!!!

What the hell am I doing wrong here???  I
just want to setup two palmpads that are on
seperate house codes to execute the same
complex macro.

HELP!!!
Logged

David Mark

  • Full Member
  • ***
  • Helpful Post Rating: -3
  • Posts: 58
    • Ohio Media Group
Re: Macro within a macro
« Reply #11 on: December 23, 2004, 12:40:05 AM »

>>I add a simple switch module that also

No.  Just click the macros to test them.

>>I  just want to setup two palmpads that
are on  seperate house codes to execute the
same  complex macro.

You are making it too hard on yourself.

Start with one PalmPad.  Set up the macro
and test it by clicking it.  If the lights
do not go on or off, see if all of your
macros are suspended.  If so, stop and
start AHP.  That always restarts the
malfunctioning macros here.

So now that you have one macro working,
test it with the PalmPad.  Add the second
macro with the other house code.  Add the
same lights and appliances, etc. just like
the first macro.  It is unfortunate that
the edit menu in AHP has no commands for
editing (eg cut, copy, paste, select all,
etc.)  Odd indeed.

Anyway, forget any ideas about nesting
macros.  This controller has horrible
problems with just the basics.
Logged

Danny Rego

  • Guest
Re: Macro within a macro
« Reply #12 on: December 23, 2004, 09:17:48 AM »

All I want to know is, what's the
difference triggering by clicking the
palmpad, or clicking "run macro" in the
windows app?!  They both APPEAR (in the
windows app) to trigger everything fine,
but the one from the palmpad doesn't
actually work.  (it just looks like it
does?!)
Logged

David Mark

  • Full Member
  • ***
  • Helpful Post Rating: -3
  • Posts: 58
    • Ohio Media Group
Re: Macro within a macro
« Reply #13 on: December 24, 2004, 12:13:58 AM »

The software sucks!  Are you new around
here?
Logged

kc

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Macro within a macro
« Reply #14 on: January 02, 2005, 12:04:26 AM »

I got the nested macro thing to work, but
it hasn't done any recursion.  I have
conditions set (time between x & y).  How
did the recursion get activated?  Did you
have to start with a simple macro, then
call a conditional one? Can the macro still
be recursive (provided conditions for this
rumor of looping to infinity) if it's not
downloaded, so that it can be tested?
Logged
Pages: [1] 2
 

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