Example ====== Clear ShowLibrary Search ====== ^ by: | Sebastian Beutel | ^ published: | March 2018 | ^ description: | Clears the search string in the ShowLibrary | ^ remarks: | see also [[macros:example:searchshowlibrary|]] | {{tag>ShowLibrary Search Reset}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty.String]] ==== affected properties ==== * [[:macros:property:Windows.ShowLibrary.FilterText]] ===== Code ===== ShowLib Clear Search ActionScript.SetProperty.String("Windows.ShowLibrary.FilterText","") ===== 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]] This macro sets the ShowLibrary search string to an empty string. Same result as ShowLibrary->Search->Clear Search->Exit. ===== How to use it ===== * [[:macros:deploying|make this macro available]] * apply it whenever you need to quickly reset the ShowLibrary search. ~~DISCUSSION~~