Example ====== Pages - Change Pages ====== ^ by: | Alex del Bondio | ^ published: | August 2018 | ^ description: | Macros to change pages in both workspace and playback areas. | ^ remarks: | used to directly access certain pages | More examples: [[macros:example:changemacrospage|]] and [[macros:example:changeplaybackpages|]] {{tag>change handle page playback group}} The code below only is a snippet of the full macro. The full macro can be found here {{ :macros:example:adb_pagechanges.xml }} and will have macros for page 1-60. ==== functions ==== * [[macros:function:Handles.Playbacks.ChangePage]] * [[macros:function:Handles.Playbacks.PreviousPage]] * [[macros:function:Handles.Playbacks.NextPage]] * [[macros:function:Handles.StaticPlaybacks.ChangePage]] * [[macros:function:Handles.MobileWingAPlaybacks.ChangePage]] ==== affected properties ==== * [[macros:property:windows.windowid.currentpage]] ===== Code ===== ActionScript.SetProperty.Integer("Windows.Playbacks.CurrentPage", 0) ActionScript.SetProperty.Integer("Windows.Groups.CurrentPage", 1) ActionScript.SetProperty.Integer("Windows.Beams.CurrentPage", 11) Handles.Playbacks.ChangePage(0) Handles.Playbacks.PreviousPage() Handles.Playbacks.NextPage() Handles.StaticPlaybacks.ChangePage(0) Handles.StaticPlaybacks.PreviousPage() Handles.StaticPlaybacks.NextPage() Handles.MobileWingAPlaybacks.ChangePage(0) Handles.MobileWingAPlaybacks.PreviousPage() Handles.MobileWingAPlaybacks.NextPage() Handles.Playbacks.ChangePage(0) Handles.StaticPlaybacks.ChangePage(0) Goes to the previous playback page. Handles.Playbacks.PreviousPage() Handles.StaticPlaybacks.PreviousPage() Goes to the previous playback page. Handles.Playbacks.NextPage() Handles.StaticPlaybacks.NextPage() ===== 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]] * ''ChangePage(x)'' and ''ActionScript.SetProperty.Integer("Windows.Playbacks.CurrentPage", 0)'' change to a designated page in many windows * ''PreviousPage()'' and ''NextPage()'' usually increment/decrement - but only if a window has a predefined number of pages, e.g. ''Handles.Playbacks'' and ''Handles.MobileAWingPlaybacks'' but not ''Handles.StaticPlaybacks'' ===== How to use it ===== - [[macros:deploying|make this macro available]] ~~DISCUSSION~~