self interruptible

From OpenKore Wiki
Jump to navigation Jump to search
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.
}