Table of Contents

Method RunAction

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

RunAction(string, IMaaRectBuffer, string, string)

Run an action.

public NodeDetail? RunAction(string entry, IMaaRectBuffer recognitionBox, string recognitionDetail, string pipelineOverride = "{}")

Parameters

entry string

The action entry name.

recognitionBox IMaaRectBuffer

The rect buffer containing current rect in the recognition result.

recognitionDetail string

The rect detail in the recognition result.

pipelineOverride string

The json used to override the pipeline.

Returns

NodeDetail?

MaaFramework.Binding.NodeDetail if the operation was executed successfully; otherwise, null.

Exceptions

ArgumentNullException

RunAction(string, MaaRectBuffer, string, string)

Run an action.

public NodeDetail? RunAction(string entry, MaaRectBuffer recognitionBox, string recognitionDetail, string pipelineOverride = "{}")

Parameters

entry string

The action entry name.

recognitionBox MaaRectBuffer

The rect buffer containing current rect in the recognition result.

recognitionDetail string

The rect detail in the recognition result.

pipelineOverride string

The json used to override the pipeline.

Returns

NodeDetail?

MaaFramework.Binding.NodeDetail if the operation was executed successfully; otherwise, null.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaContext.MaaContextRunAction(System.IntPtr,System.String,System.String,System.IntPtr,System.String).

Exceptions

ArgumentNullException