User Tools

Site Tools


macros:example:shomessage

This is an old revision of the document!


Example

Show a message prompt

by: Sebastian Beutel, Sept. 2018
published: here
description: some ways to display a message from a macro
remarks: Useful e.g.to debug your macros.

functions

affected properties

Code

showmessages.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
 
  <macro id="Avolites.Macros.Hello" name="Hello Macro">
    <sequence>
      <step>Menu.ErrorReport('Error.Generic', "Welcome to the world of macros!")</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.2lineerror" name="Another error">
    <sequence>
      <step>ActionScript.SetProperty.String("Menu.ErrorMessage", 
             "This is another message. " + "This is some more text.")</step>
      <step>Menu.PushOrReloadMenu("Error.Generic")</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.showfadetime" name="Show Fade Time">
    <sequence>
      <step>ActionScript.SetProperty.String("Menu.ErrorMessage", 
             "The master fade time is currently " + Math.ToString(Palette.MasterFadeTime) + " seconds")</step>
      <step>Menu.PushOrReloadMenu("Error.Generic")</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

tbd

How to use it

You could leave a comment if you were logged in.
macros/example/shomessage.1537109265.txt.gz · Last modified: 2018/09/16 14:47 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki