home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
IR Server Suite (IRSS)
Macro If Statement
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tobias funke" data-source="post: 715624" data-attributes="member: 111231"><p>This is the macro I use to combine my receiver's discrete on/off switches into a single Translator toggle. It's worked ever since I made it 2 years ago. Maybe it can help you with your problem to see a working if-then script.</p><p></p><p></p><p><?xml version="1.0" encoding="utf-8" standalone="yes"?></p><p><macro></p><p> <item command="Load Variables: power" /></p><p> <item command="If: var_power|==|on|Power Off|Power On" /></p><p> <item command="Label: Power On" /></p><p> <item command="Blast: Receiver - Power On|Port_2" /></p><p> <item command="Set Variable: var_power|on" /></p><p> <item command="Goto Label: End" /></p><p> <item command="Label: Power Off" /></p><p> <item command="Blast: Receiver - Power Off|Port_2" /></p><p> <item command="Set Variable: var_power|off" /></p><p> <item command="Label: End" /></p><p> <item command="Save Variables: power" /></p><p></macro></p></blockquote><p></p>
[QUOTE="tobias funke, post: 715624, member: 111231"] This is the macro I use to combine my receiver's discrete on/off switches into a single Translator toggle. It's worked ever since I made it 2 years ago. Maybe it can help you with your problem to see a working if-then script. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <macro> <item command="Load Variables: power" /> <item command="If: var_power|==|on|Power Off|Power On" /> <item command="Label: Power On" /> <item command="Blast: Receiver - Power On|Port_2" /> <item command="Set Variable: var_power|on" /> <item command="Goto Label: End" /> <item command="Label: Power Off" /> <item command="Blast: Receiver - Power Off|Port_2" /> <item command="Set Variable: var_power|off" /> <item command="Label: End" /> <item command="Save Variables: power" /> </macro> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
IR Server Suite (IRSS)
Macro If Statement
Contact us
RSS
Top
Bottom