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
ctrlnint-
The controller handle.
cmdstring-
The shell command to execute.
timeoutlong-
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.