macros:example:changeplaybackpages

This is an old revision of the document!


Change All Playback Pages

by: Menno Appelhof, Aug. 2016
published: http://forum.avolites.com/viewtopic.php?f=20&t=4775
description: Macros to change all playback pages on main sections, static playbacks and the wings.
remarks: Code below is shortened for better overview. Find full version (for all pages) at the original post.

functions

Code

Code below is shortened for better overview. Find full version (for all pages) at the original post.

ChangeAllPlaybacksMacros.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd" >
 
<!--Macros to change all playback pages on main sections, static playbacks and the wings. August 2016 Menno Appelhof menno@fairlight.nl -->
 
  <macro name="Playbacks Page 1" id="Avolites.Macros.ChangeToPage1">
    <description>Changes all pages to page 1.</description>
    <sequence>
	<step>Handles.Playbacks.ChangePage(0)</step>
	<step>Handles.StaticPlaybacks.ChangePage(0)</step>
	<step>Handles.MobileWingAPlaybacks.ChangePage(0)</step>
        <step>Handles.MobileWingAExecutor.ChangePage(0)</step>
	<step>Handles.SapphireWingATop.ChangePage(0)</step>
	<step>Handles.SapphireWingABottom.ChangePage(0)</step>
	<step>Handles.SapphireWingBTop.ChangePage(0)</step>
	<step>Handles.SapphireWingBBottom.ChangePage(0)</step>
    </sequence>
  </macro>
 
<!-- add macros for pages 2~59 here -->
 
  <macro name="Playbacks Page 60" id="Avolites.Macros.ChangeToPage60">
    <description>Changes all pages to page 60.</description>
    <sequence>
	<step>Handles.Playbacks.ChangePage(59)</step>
	<step>Handles.StaticPlaybacks.ChangePage(59)</step>
	<step>Handles.MobileWingAPlaybacks.ChangePage(59)</step>
        <step>Handles.MobileWingAExecutor.ChangePage(59)</step>
	<step>Handles.SapphireWingATop.ChangePage(59)</step>
	<step>Handles.SapphireWingABottom.ChangePage(59)</step>
	<step>Handles.SapphireWingBTop.ChangePage(59)</step>
	<step>Handles.SapphireWingBBottom.ChangePage(59)</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

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/changeplaybackpages.1509294946.txt.gz · Last modified: 2017/10/29 16:35 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki