User Tools

Site Tools


macros:example:shomessage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:example:shomessage [2018/09/16 14:42] – created icke_siegenmacros:example:shomessage [2018/09/16 15:00] (current) – [How to use it] icke_siegen
Line 27: Line 27:
   <macro id="Avolites.Macros.Hello" name="Hello Macro">   <macro id="Avolites.Macros.Hello" name="Hello Macro">
     <sequence>     <sequence>
-   <step>Menu.ErrorReport('Error.Generic', "Welcome to the world of macros!")</step> +      <step>Menu.ErrorReport('Error.Generic', "Welcome to the world of macros!")</step> 
- </sequence>+    </sequence>
   </macro>   </macro>
      
   <macro id="Avolites.Macros.2lineerror" name="Another error">   <macro id="Avolites.Macros.2lineerror" name="Another error">
     <sequence>     <sequence>
-   <step>ActionScript.SetProperty.String("Menu.ErrorMessage",  +      <step>ActionScript.SetProperty.String("Menu.ErrorMessage",  
-                   "This is another message. " + "This is some more text.")</step> +             "This is another message. " + "This is some more text.")</step> 
-   <step>Menu.PushOrReloadMenu("Error.Generic")</step> +      <step>Menu.PushOrReloadMenu("Error.Generic")</step> 
- </sequence>+    </sequence>
   </macro>   </macro>
      
   <macro id="Avolites.Macros.showfadetime" name="Show Fade Time">   <macro id="Avolites.Macros.showfadetime" name="Show Fade Time">
     <sequence>     <sequence>
-   <step>ActionScript.SetProperty.String("Menu.ErrorMessage",  +      <step>ActionScript.SetProperty.String("Menu.ErrorMessage",  
-                 "The master fade time is currently " + Math.ToString(Palette.MasterFadeTime) + " seconds")</step> +             "The master fade time is currently " + Math.ToString(Palette.MasterFadeTime) + " seconds")</step> 
-   <step>Menu.PushOrReloadMenu("Error.Generic")</step> +      <step>Menu.PushOrReloadMenu("Error.Generic")</step> 
- </sequence>+    </sequence>
   </macro>   </macro>
  
Line 55: Line 55:
 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 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]]
  
-tbd+The first example just throws a message and prompts to click OK:\\ 
 +{{:macros:example:hello_1.png}} 
 + 
 +The seond example displays another message, here composed of two parts, and stored in a property.\\ 
 +{{:macros:example:hello_2.png|}} 
 + 
 +The third example shows how a numeric value (''Palette.MasterFadeTime'') can be displayed after converting it to a string:\\ 
 +{{:macros:example:hello_3.png|}} 
  
 ===== How to use it ===== ===== How to use it =====
  
-  - [[:macros:deploying|make this macro available]]+See [[:macros:deploying|make this macro available]]
  
-tbd+However, this is more an example of how you can throw in some lines into your macros to show a message.
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/shomessage.1537108932.txt.gz · Last modified: 2018/09/16 14:42 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki