Table of Contents

Method RunAction

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

RunAction(string, IMaaRectBuffer, string, string)

Run an action.

public ActionDetail? 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

ActionDetail?

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

Exceptions

ArgumentNullException

RunAction(string, MaaRectBuffer, string, string)

Run an action.

public ActionDetail? 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

ActionDetail?

MaaFramework.Binding.ActionDetail 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