User Tools

Site Tools


macros:example:deleteplayback

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

macros:example:deleteplayback [2018/09/16 14:17] (current)
icke_siegen created
Line 1: Line 1:
 +Example
  
 +====== Delete Playback ======
 +
 +^ by: | Lucas Wx, April 2018 |
 +^ published: | https://​www.facebook.com/​groups/​Avolites/​permalink/​1215020168630215/​ |
 +^ description:​ | Deletes a playback. |
 +
 +{{tag>​delete playback}}
 +
 +==== functions ====
 +  * [[:​macros:​function:​Handles.SetSourceHandleFromHandle]]
 +  * [[:​macros:​function:​Handles.GetHandle]]
 +  * [[:​macros:​function:​Handles.ConfirmDelete]]
 +
 + 
 +===== Code =====
 +<code xml>
 +<?xml version="​1.0"​ encoding="​utf-8"?>​
 +<​avolites.macros xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance"​ xsi:​noNamespaceSchemaLocation="​Avolites.Menus.xsd">​
 + <​macro id=""​ name=""​ >
 +    <​sequence>​
 +      <step pause="​0.01">​Handles.SetSourceHandleFromHandle(Handles.GetHandle("​Playbacks",​x,​x))</​step>​
 +      <step pause="​0.01">​Handles.ConfirmDelete()</​step>​
 +     </​sequence>​
 +  </​macro>​
 +</​avolites.macros>​
 +</​code>​
 +
 +
 +===== 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]]
 +
 +  * ''​Handles.SetSourceHandleFromHandle(Handles.GetHandle("​Playbacks",​x,​x))''​ points Handles.SourceHandle to a particular playback
 +  * ''​Handles.ConfirmDelete()''​ deletes this handle
 +
 +===== How to use it =====
 +
 +  * [[:​macros:​deploying|make this macro available]]
 +  * this is not fully functional - you need to define the exact handle
 +
 +~~DISCUSSION~~
macros/example/deleteplayback.txt ยท Last modified: 2018/09/16 14:17 by icke_siegen