Template:Self Interruptible: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro parameter: self_interruptible)
 
No edit summary
 
Line 7: Line 7:
:* When it's value is 1 the macro can NOT be interrupted by itself.
:* When it's value is 1 the macro can NOT be interrupted by itself.


  automacro MyAuto {
  automacro MyAuto1 {
     <automacro conditions and parameters (and only them)>
     <automacro conditions and parameters (and only them)>
     self_interruptible 1
     self_interruptible 1
     call myMacro
     call myMacro
  }
  }
  macro myMacro {
  macro myMacro1 {
     <macro instructions (and only them, as this is regular macro)>
     <macro instructions (and only them, as this is regular macro)>
     log Be very careful, almost all the time you want this to keep on default value
     log Be very careful, almost all the time you want this to keep on default value

Latest revision as of 20:41, 18 October 2020

This template describes the self_interruptible parameter of the automacro eventMacros.
self_interruptible <boolean>
  • self_interruptible is an optional parameter.
  • self_interruptible defines if the macro can be interrupted by itself or not.
  • If not used in the automacro the default value will be used, which is: 0.
  • When it's value is 0 the macro can be interrupted by itself.
  • When it's value is 1 the macro can NOT be interrupted by itself.
automacro MyAuto1 {
    <automacro conditions and parameters (and only them)>
    self_interruptible 1
    call myMacro
}
macro myMacro1 {
    <macro instructions (and only them, as this is regular macro)>
    log Be very careful, almost all the time you want this to keep on default value
}

automacro MyAuto2 {
    <automacro conditions and parameters (and only them)>
    self_interruptible 0
    call myMacro
}
macro myMacro2 {
    <macro instructions (and only them, as this is regular macro)>
    log Since self_interruptible is 0 the macro is now uninterruptible by itself and will work properly.
}