Example ====== Blind Mode On/Off ====== ^ by: | | ^ published: | October 2017 | ^ description: | Macros for entering/leaving blind mode. | ^ remarks: | Useful in particular on consoles which have no designated button. | {{tag>Blind Toggle}} ==== functions ==== * [[:macros:function:ActionScript.SetProperty.Boolean]] * [[:macros:function:Programmer.SetBlindMode]] ==== affected properties ==== * [[:macros:property:Programmer.BlindActive]] ==== specials ==== * for the relation between setting a property and performing an action which is based on it see [[macros:action_and_menus]] * 'To enter and leave blind both actions must be performed. Blind checks the bool to see if it is entering or leaving.' ===== Code ===== ActionScript.SetProperty.Boolean("Programmer.BlindActive", true) Programmer.SetBlindMode(false, 0) ActionScript.SetProperty.Boolean("Programmer.BlindActive", false) Programmer.SetBlindMode(false, 0) ===== 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]] The function [[:macros:function:Programmer.SetBlindMode]] **inherently** requires the property ''Programmer.BlindActive''. Hence, each macro sets this property (either to False or to True), and then calls ''SetBlindMode''which makes it happen. ===== How to use it ===== [[:macros:deploying|make this macro available]] These macros are useful for coding other macros, and for quickly entering/leaving blind mode on consoles witout a designated '''' button. ~~DISCUSSION~~