User Tools

Site Tools


macros:example:changemobilewingpage

This is an old revision of the document!


Example

Change Titan Mobile Wing Page

by: Sebastian Beutel, Oct. 2018
published: Oct 2018
description: Macros to change page of the Titan Mobile Faderwing
remarks: useful with the simulator as this lacks the ability to change the pages in the Mobile Wing window.

functions

Code

ChangeMobileWingPage.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Avolites.MobileWing.Playbacks.ChangeToPage1" name="Mobile Wing Playbacks Page 1">
    <description>Changes the Mobile Wing playbacks page to page 1.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.ChangePage(0)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Playbacks.ChangeToPage2" name="Mobile Wing Playbacks Page 2">
    <description>Changes the Mobile Wing playbacks page to page 2.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.ChangePage(1)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Playbacks.ChangeToPage3" name="Mobile Wing Playbacks Page 3">
    <description>Changes the Mobile Wing playbacks page to page 3.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.ChangePage(2)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Playbacks.ChangeToPage4" name="Mobile Wing Playbacks Page 4">
    <description>Changes the Mobile Wing playbacks page to page 4.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.ChangePage(3)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Playbacks.PreviousPage" name="Mobile Wing Playbacks Page -1">
    <description>Changes the Mobile Wing playbacks to the previous page.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.PreviousPage()</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Playbacks.NextPage" name="Mobile Wing Playbacks Page +1">
    <description>Changes the Mobile Wing playbacks to the next page.</description>
    <sequence>
       <step>Handles.MobileWingAPlaybacks.NextPage()</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.ChangeToPage1" name="Mobile Wing Executors Page 1">
    <description>Changes the Mobile Wing Executors page to page 1.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.ChangePage(0)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.ChangeToPage2" name="Mobile Wing Executors Page 2">
    <description>Changes the Mobile Wing Executors page to page 2.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.ChangePage(1)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.ChangeToPage3" name="Mobile Wing Executors Page 3">
    <description>Changes the Mobile Wing Executors page to page 3.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.ChangePage(2)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.ChangeToPage4" name="Mobile Wing Executors Page 4">
    <description>Changes the Mobile Wing Executors page to page 4.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.ChangePage(3)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.PreviousPage" name="Mobile Wing Executors Page -1">
    <description>Changes the Mobile Wing Executors to the previous page.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.PreviousPage()</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.MobileWing.Executors.NextPage" name="Mobile Wing Executors Page +1">
    <description>Changes the Mobile Wing Executors to the next page.</description>
    <sequence>
       <step>Handles.MobileWingAExecutor.NextPage()</step>
    </sequence>
  </macro>
 
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

Each macro simply calls a specific ChangePage() function with the index of the designated page.

How to use it

  1. If you copy this macro to a hardware macro button this will vanish when changing its page. Consider setting its properties to Handle Paging Locked in playback options.
You could leave a comment if you were logged in.
macros/example/changemobilewingpage.1540997222.txt.gz · Last modified: 2018/10/31 14:47 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki