Template:Self Interruptible

From OpenKore Wiki
Revision as of 18:54, 2 October 2019 by Nipodemos (talk | contribs) (Add EventMacro parameter: self_interruptible)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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 MyAuto {
    <automacro conditions and parameters (and only them)>
    self_interruptible 1
    call myMacro
}
macro myMacro {
    <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.
}