Template:Delay: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with " <noinclude>This template describes the '''delay''' parameter of the automacro eventMacros.</noinclude> ; delay :* '''delay''' is an optional paramet...")
 
No edit summary
 
Line 1: Line 1:
  <noinclude>This template describes the '''delay''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude>
  <noinclude>This template describes the '''delay''' [[EventMacro#Parameters|parameter]] of the automacro eventMacros.</noinclude>
; delay
; delay <[[References#Basic_Value_and_Parameter_Types|seconds]]>
:* '''delay''' is an optional parameter.
:* '''delay''' is an optional parameter.
:* '''delay''' defines the time in seconds to wait before executing the macro in call parameter.
:* '''delay''' defines the time in seconds to wait before executing the macro in call parameter.

Latest revision as of 20:45, 3 July 2019

This template describes the delay parameter of the automacro eventMacros.
delay <seconds>
  • delay is an optional parameter.
  • delay defines the time in seconds to wait before executing the macro in call parameter.
  • If not used in the automacro the default value will be used, which is: 0.
  • Must have a numeric value.
automacro <automacro name> {
    <automacro conditions and parameters (and only them)>
    delay 5
    call myMacro
}
macro myMacro {
    <macro instructions (and only them, as this is regular macro)>
    log This is being logged 5 seconds after the automacro activated
}