User Tools

Site Tools


macros:action_and_menus

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:action_and_menus [2017/11/19 13:49] icke_siegenmacros:action_and_menus [2017/11/19 15:27] (current) – external edit 127.0.0.1
Line 3: Line 3:
 When dealing with macros you'll soon learn that even simple actions might require several steps: in general, programming is a very fine-grained business. When dealing with macros you'll soon learn that even simple actions might require several steps: in general, programming is a very fine-grained business.
  
-One of the aspects of this is that the menu - which is displayed to you - is independent from the things which are going on inside the programm. And while there might be measures in place to keep menus and the core in sync, there are also occasions where it is you duty to deal with this.+One of the aspects of this is that the menu - which is displayed to you - is independent from the things which are going on inside the programm. And while there might be measures in place to keep menus and the core in sync, there are also occasions where it is your duty to deal with this. In doubt, try to find out if there is a variable you need to set.
  
-One clear example are the [[macros:example:timecodeonoff|Enable/Disable Timecode macros]]. For testing, I modified the macros and programmed a cuelist to run from the internal timecode. The modified macros are available here: {{ :modifiedtimecodemacros.xml |}}+One clear example are the [[macros:example:timecodeonoff|Enable/Disable Timecode macros]]. For testing, I modified the macros and programmed a cuelist to run from the internal timecode. The modified macros are available here: {{ :macros:modifiedtimecodemacros.xml }} 
  
   * ''<step>Timecode.SetEnabled(true)</step>'' would be all it needs to enable the timecode timer inside the program. However, this does not change the menu to 'Timer Enabled'.   * ''<step>Timecode.SetEnabled(true)</step>'' would be all it needs to enable the timecode timer inside the program. However, this does not change the menu to 'Timer Enabled'.
Line 13: Line 13:
     * ''<step>Timecode.SetEnabled(Timecode.Enabled)</step>'' directly enables the timer in case the menu isn't open     * ''<step>Timecode.SetEnabled(Timecode.Enabled)</step>'' directly enables the timer in case the menu isn't open
  
-**It is always a good idea to test you macros under various conditions - in particular, with various menus open.**+**It is always a good idea to test your macros under various conditions - in particular, with various menus open.**
  
 +~~NOCACHE~~
 +{{page>macros:formats_and_syntax#further_readings}}
 +
 +~~DISCUSSION~~
macros/action_and_menus.1511099343.txt.gz · Last modified: 2017/11/19 13:49 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki