Table of Contents

Method RunActionDirect

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

RunActionDirect(string, string, IMaaRectBuffer, string)

Runs action directly with type and parameters, without requiring a pipeline entry.

public ActionDetail? RunActionDirect(string type, string param, IMaaRectBuffer recognitionBox, string recognitionDetail = "")

Parameters

type string

The action type.

(e.g., "Click", "Swipe")

param string

The action parameters json.

recognitionBox IMaaRectBuffer

The rect buffer containing current rect in the recognition result.

recognitionDetail string

The rect detail in the recognition result.

Returns

ActionDetail?

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

Exceptions

ArgumentNullException

RunActionDirect(string, string, MaaRectBuffer, string)

Runs action directly with type and parameters, without requiring a pipeline entry.

public ActionDetail? RunActionDirect(string type, string param, MaaRectBuffer recognitionBox, string recognitionDetail = "")

Parameters

type string

The action type.

(e.g., "Click", "Swipe")

param string

The action parameters json.

recognitionBox MaaRectBuffer

The rect buffer containing current rect in the recognition result.

recognitionDetail string

The rect detail in the recognition result.

Returns

ActionDetail?

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

Remarks

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

Exceptions

ArgumentNullException