Table of Contents

Method Shell

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

Shell(string, long)

Appends a job for shell command action.

public MaaJob Shell(string cmd, long timeout = 20000)

Parameters

cmd string

The shell command to execute.

timeout long

The timeout in milliseconds. Default is 20000 (20 seconds).

Returns

MaaJob

A shell MaaFramework.Binding.MaaJob.

Remarks

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

See also MaaFramework.Binding.IMaaController.GetShellOutput(System.String@).