Method RunAction
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
RunAction(string, string, IMaaRectBuffer, string)
Run an action.
public NodeDetail? RunAction(string entry, string actionOverride, IMaaRectBuffer recognitionBox, string recognitionDetail)
Parameters
entry
string-
The action entry name.
actionOverride
string-
The json used to override the action.
recognitionBox
IMaaRectBuffer-
The rect buffer containing current rect in the recognition result.
recognitionDetail
string-
The rect detail in the recognition result.
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
RunAction(string, string, IMaaRectBuffer<nint>, string)
Run an action.
public NodeDetail? RunAction(string entry, string actionOverride, IMaaRectBuffer<nint> recognitionBox, string recognitionDetail)
Parameters
entry
string-
The action entry name.
actionOverride
string-
The json used to override the action.
recognitionBox
IMaaRectBuffer<nint>-
The rect buffer containing current rect in the recognition result.
recognitionDetail
string-
The rect detail in the recognition result.
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).