Table of Contents

Method MaaControllerPostShell

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

MaaControllerPostShell(nint, string, long)

Post a shell command to the controller.

public static long MaaControllerPostShell(nint ctrl, string cmd, long timeout)

Parameters

ctrl nint

The controller handle.

cmd string

The shell command to execute.

timeout long

Timeout in milliseconds. Default is 20000 (20 seconds).

Returns

long

The control id of the shell action.

Remarks

This is only valid for ADB controllers. If the controller is not an ADB controller, the action will fail.

Supported by ADB controllers and custom controllers that implement the shell callback.