帮助中心

# hardwareInputEx-硬件外设延时输入

调用hardwareInputEx函数使用硬件外设高级输入。

最小支持版本:5.0.0

# 接口说明

已插入幽灵键鼠外部设备。

# 语法

Element.hardwareInputEx(<type>, <text>, 10)
1
Element.硬件外设延时输入(<type>, <text>, 10)
1

# 函数类型

静态函数

# 请求参数

参数名称 类型 是否必选 默认值 示例值 描述
type Cube.Lang.Number 1 硬件类型。预设枚举值,暂无实际含义。
text Cube.Lang.String "百度一下" 待输入的文本。
interval Cube.Lang.Number 10 10 每个字符的输入时间间隔,单位毫秒。

# 返回参数

参数名称 类型 示例值 描述
Result Cube.Lang.Boolean true 输入的结果。
true:成功。
false:失败。

# 请求示例

Element.hardwareInputEx(1, ”百度一下“, 10)
1
最近更新时间: { "value": "2023-09-12", "effect": true }