Table of Contents

Example

Open ShowLibrary Search

by: Sebastian Beutel
published: March 2018
description: Opens the ShowLibrary search prompt. Doesn't open the ShowLibrary workspace window itself. Next time it is called it will open with the new search active.
remarks: see also Search ShowLibrary

functions

none

affected properties

none

control structures

Code

showlib_search.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
<!-- opens show library search prompt - doesn't open the window though. It will open next time with this search active. -->	
  <macro id="UserMacro.ShowLib.OpenSearch">
    <name>ShowLib OpenSearch</name>
    <sequence>
      <step pause="0.001"><menuLink id="Show.ShowLibrary.Search" stack="Primary" behaviour="PushOrRaise"/></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

This macro simply calls the correct menu.

How to use it