Example ====== Pages - 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 [[http://forum.avolites.com/viewtopic.php?f=20&t=4775|original post]]. | {{tag>change handle page playback group}} ==== functions ==== * [[macros:function:handles.playbacks.changepage]] * [[macros:function:handles.staticplaybacks.changepage]] * [[macros:function:handles.mobilewingaplaybacks.changepage]] * [[macros:function:handles.mobilewingaexecutor.changepage]] * [[macros:function:handles.sapphirewingatop.changepage]] * [[macros:function:handles.sapphirewingabottom.changepage]] * [[macros:function:handles.sapphirewingbtop.changepage]] * [[macros:function:handles.sapphirewingbbottom.changepage]] ===== Code ===== Code below is shortened for better overview. Find full version (for all pages) at the [[http://forum.avolites.com/viewtopic.php?f=20&t=4775|original post]]. Changes all pages to page 1. Handles.Playbacks.ChangePage(0) Handles.StaticPlaybacks.ChangePage(0) Handles.MobileWingAPlaybacks.ChangePage(0) Handles.MobileWingAExecutor.ChangePage(0) Handles.SapphireWingATop.ChangePage(0) Handles.SapphireWingABottom.ChangePage(0) Handles.SapphireWingBTop.ChangePage(0) Handles.SapphireWingBBottom.ChangePage(0) Changes all pages to page 60. Handles.Playbacks.ChangePage(59) Handles.StaticPlaybacks.ChangePage(59) Handles.MobileWingAPlaybacks.ChangePage(59) Handles.MobileWingAExecutor.ChangePage(59) Handles.SapphireWingATop.ChangePage(59) Handles.SapphireWingABottom.ChangePage(59) Handles.SapphireWingBTop.ChangePage(59) Handles.SapphireWingBBottom.ChangePage(59) ===== Explanation ===== This explains the functional steps within the sequence. For all the other XML details please refer to [[macros:formats_and_syntax#xml_format|Formats and syntax]] Each macro changes all hardware handles to a particular page by calling the respective ChangePage() function. Please note that the page number is a 0-based index. ===== How to use it ===== - [[macros:deploying|make this macro available]] - If you copy this macro to a hardware button this will vanish when changing its page. Consider setting its properties to ''Handle Paging Locked'' in playback options. ~~DISCUSSION~~