Example ====== Search ShowLibrary ====== ^ by: | Sebastian Beutel | ^ published: | March 2018 | ^ description: | opens the ShowLibrary with a specific search string. | ^ remarks: | Idea by Alex del Bondio, see https://www.facebook.com/groups/1811437589141428/permalink/2067393396879178/ | {{tag>ShowLibrary Search}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty]] ==== affected properties ==== * [[:macros:property:Windows.ShowLibrary.SelectedFilter]] * [[:macros:property:Windows.ShowLibrary.FilterText]] ==== control structures ==== * [[macros:control_structures:menulink|menuLink]] ===== Code ===== ShowLib abc ActionScript.SetProperty("Windows.ShowLibrary.SelectedFilter","Macros") ActionScript.SetProperty("Windows.ShowLibrary.FilterText","abc") ===== 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]] ''ActionScript.SetProperty("Windows.ShowLibrary.SelectedFilter","Macros")'' sets the filter of the ShowLibrary workspace window to 'Macros'.\\ ''ActionScript.SetProperty("Windows.ShowLibrary.FilterText","abc")'' sets a specific search text. Alter 'abc' to your needs.\\ '''' finally brings up the ShowLibrary workspace window with the set filter and search. ===== How to use it ===== * [[:macros:deploying|make this macro available]] * you might want to adjust 'abc' to your needs. E.g. if you decide to give all you preferred macros a specific prefix the this macro lets you quickly find them. ~~DISCUSSION~~