Macro / standby issue using MCE remote (1 Viewer)

GoldenEye

MP Donator
  • Premium Supporter
  • October 26, 2005
    300
    26
    Switzerland
    Home Country
    Switzerland Switzerland
    Today, I did my first steps using macros in translator. Very nice feature, indeed! Now, I'm stuck with an issue.

    What do I want to achieve?

    When sending MP in standby, I would like the system to check whether my beamer is on and if yes, turn it off.


    How do I try to achieve this?

    In order to achieve this, I use two macros.

    Macro (1) sets a variable var_xyz = yes when turning on my beamer.
    Macro (2) checks whether var_xyz == yes as soon as I send the system into standby.

    Macro (1):
    Code:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <macro>
      <item command="If: var_BeamerOn|==|Yes|TurnOffBeamer|TurnOnBeamer" />
      <item command="Label: TurnOffBeamer" />
      <item command="Blast: SwitchBeamer|Both" />
      <item command="Blast: SwitchBeamer|Both" />
      <item command="Set Variable: var_BeamerOn|No" />
      <item command="Goto Label: End" />
      <item command="Label: TurnOnBeamer" />
      <item command="Blast: SwitchBeamer|Both" />
      <item command="Set Variable: var_BeamerOn|Yes" />
      <item command="Label: End" />
    </macro>

    Macro (2) looks as follows and is assigned to the PC_Suspend event:
    Code:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <macro>
      <item command="If: var_BeamerOn|==|Yes|TurnOffBeamer|End" />
      <item command="Label: TurnOffBeamer" />
      <item command="Blast: SwitchBeamer|Both" />
      <item command="Blast: SwitchBeamer|Both" />
      <item command="Set Variable: var_BeamerOn|No" />
      <item command="Label: End" />
    </macro>

    The issue

    Sending my computer into standby using my MCE remote's PC button does not leave enough time to fire the two IR blasts needed for turning off my beamer. The PC goes too fast into standby mode.

    Any hints about how I could solve this - probably with a completely different approach?

    Thx in advance,

    G.
     

    cafe.racer

    Portal Pro
    August 5, 2008
    74
    1
    Home Country
    United Kingdom United Kingdom
    Interesting what you're trying here - I have a discrete "OFF" for my TV, but no discrete "ON", so I use a "POWER" command. Sometimes the TV is On when I send the "POWER" command, so it turns off when I wanted it on. Similar to you, I tried to write something to keep track, but failed.

    BUT, WRT to your specific problem, I beleive that MST (MediaCenter Standby Tool) with let you set a suspend delay Slick Solutions - Home of the MCE Standby Tool (MST)
     

    Users who are viewing this thread

    Top Bottom