User Tools

Site Tools


macros:example:togglepagetemp

This is an old revision of the document!


Example

Toggle Windows Page temporarily

by: Sebastian Beutel, Nov. 2022
published: here
description: temporarily toggles a window's page and returns
remarks: idea: shannon Asher, https://www.facebook.com/groups/Avolites/posts/2664983363633881/

This needs to be moved onto a hardware button as Titan doesn't support multitouch. Then, as long as this button is held down, a window is toggled to its next page.

functions

  • basic math

affected properties

Code

filename.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros> 
 
<!-- https://www.facebook.com/groups/Avolites/posts/2664983363633881/ -->
<!-- idea by Shannon Asher -->
<!-- toggle workspace window pages while a button is held -->
 
<macro id="Wiki.Macros.Toggle.Colours" name="Toggle Colours Window Page">
  <description>Toggle Colours Window</description> 
  <start> 
    <step>Handles.Colours.ChangePage(Handles.Colours.Page.Index + 1)</step> 
  </start> 
  <end> 
    <step>Handles.Colours.ChangePage(Handles.Colours.Page.Index - 1)</step> 
  </end> 
</macro> 
 
<macro id="Wiki.Macros.Toggle.PlaybackWindow" name="Toggle PlaybackWindow Page">
  <description>Toggle PlaybackWindow</description> 
  <start> 
    <step>Handles.PlaybackWindow.ChangePage(Handles.PlaybackWindow.Page.Index + 1)</step> 
  </start> 
  <end> 
    <step>Handles.PlaybackWindow.ChangePage(Handles.PlaybackWindow.Page.Index - 1)</step> 
  </end> 
</macro> 
 
</avolites.macros>

Explanation

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

  • upon pressing the button this macro is assigned to a specific window is toggled to its next page:

How to use it

You could leave a comment if you were logged in.
macros/example/togglepagetemp.1668516013.txt.gz · Last modified: 2022/11/15 12:40 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki