Two Macros, One Button (2 Viewers)

Macfox

Portal Member
January 14, 2006
37
0
Adelaide, Australia
Hi,

First of all this is a great plugin.

Like most people, I'm trying to reduce the number of remotes one needs to use to turn on and off my TV and Reciever when away.

Last night I recorded my TV+receiver remote IR ON/OFF sequences and built two seperate macros (On/Off). For reference the two macros are significantly different.

What I can't seem to figure out is how to assign these macros to the MCE remote TV power button and operate them in an alternate fashion.

i.e.
1st Press of the TV power button and it runs the TVReceiverON Macro.
2nd Press of TV power button and it runs the TVReceiverOFF Macro.
3rd Press of the TV power button and it runs the TVReceiverON Macro.
4th Press of TV power button and it runs the TVReceiverOFF Macro.
and so on.

I've designed the ON macro as such that if it runs twice in a row it will have no effect. Unfortunately the OFF macro I can't do that as I can't find an IR command to specifically only turn off the units.

So to get to my question. Can I run alternate macros on a single button? I really don't want to use to buttons if it can be helped.

BTW I thought the layer switch might be of use here, but I can't seem to make that work. Is only one condition type/action per layer executed?

Regards
Rob
 

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Hey Rob,

    Yes, Layer switch is the way to go. You need to set up two layers for the button, but you do the layer switch as the final action of each macro. It's true that only one action can be performed per condition in the MediaPortal input mapper.

    I've added a Layer Switch macro command to the plugin to get around this. If it's not in the version of the plugin that you have then you might need the latest test version available in the "Latest test version" thread.

    Good luck.
     

    Macfox

    Portal Member
    January 14, 2006
    37
    0
    Adelaide, Australia
    Thanks Aaron.

    Yes I tried the layer switch method, but 1st try I didn't get it to work. But will try again now you confirm that's the best way.

    So I setup a layer 1 and a layer 2, each with the opersite action. Do I need an All layer to catch the first press or will it default to layer 1. Hope that's clear.
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Yes it will use layer one.

    So for each layer there is a command to execute a macro, and at the end of each macro you put a layer switch.

    good luck.
     

    Macfox

    Portal Member
    January 14, 2006
    37
    0
    Adelaide, Australia
    Okay I see where I went wrong now.

    I didn't have the "toggle input layer" in the macro, but rather as an additional "no condtion" action in the layer. It was only ever processing the single action per layer.

    Once I added the toggle input layer to the macro and remove the extra action it worked.

    Maybe the gui should only allow one action per unique condition per layer. As I added two "no condition" actions and it only processed the first. Doh!

    Anyway Thanks for the help..
     

    Users who are viewing this thread

    Top Bottom