User Tools

Site Tools


macros:example:openshowlibrarysearch

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

  • Call it whenever you want another search in ShowLibrary. Effectively this is similar to ShowLibrary→(Context Menu)→Search - but this macro is much quicker.
You could leave a comment if you were logged in.
macros/example/openshowlibrarysearch.txt · Last modified: 2018/04/02 09:14 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki