> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 滑动条验证码

## 指令说明

**描述：** 识别滑动条验证码的拖动区域，返回终点坐标或拖动滑块位置完成验证。网页和桌面软件中的验证码都支持。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-01.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=8a0c611084dad2044584e77a716cb9c7" alt="滑动条验证码指令参数面板" width="639" height="682" data-path="helpcenter/commands/ai/images/recognizeslidercommand-01.png" />

    | 参数         | 说明                                               |
    | ---------- | ------------------------------------------------ |
    | **识别引擎**   | 请选择需要使用的验证码引擎（默认八爪鱼AI）                           |
    | **图像来源**   | 选要识别的图像是来源于网页元素还是桌面元素。Web网页类型的选网页元素，桌面端软件的选桌面元素。 |
    | **网页对象**   | 输入一个获取到的或者通过”打开网页"创建的网页对象                        |
    | **滑动条**    | 选择滑块按钮所在的滑动条，可以从元素库中选择也可以直接从网页或桌面上捕获。            |
    | **滑块按钮**   | 选择需要拖动的滑块位置，可以从元素库中选择也可以直接从网页或桌面上捕获。             |
    | **自动完成验证** | 点击自动完成验证即可自动执行拖捷动作，否则仅返回滑块终点坐标                   |
  </Tab>

  <Tab title="高级">
    | 参数            | 说明                  |
    | ------------- | ------------------- |
    | **等待元素存在（s）** | 等待目标元素存在的最大超时时间，单位秒 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-04.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=48666ee7060e26057d60fb737d2ac8f6" alt="滑动条验证码使用示例" width="1019" height="192" data-path="helpcenter/commands/ai/images/recognizeslidercommand-04.png" />

**该流程执行逻辑：**

1. 打开案例网页 `https://www.amap.com/`，点击登录并等待滑块验证码出现。
2. 在【滑动条验证码】中选择验证码区域、滑块条和滑块按钮等目标元素。
3. 运行指令后，流程识别滑块需要移动的距离；勾选自动完成时会自动拖动滑块并提交验证，否则可读取识别结果自行拖动。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-02.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=8b17df5bc512ed7cd0825da8bc653091" alt="滑动条验证码效果展示" width="901" height="496" data-path="helpcenter/commands/ai/images/recognizeslidercommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-03.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=f4469ad5e185a59d8d42f522fd4b86b9" alt="滑动条验证码效果展示" width="895" height="498" data-path="helpcenter/commands/ai/images/recognizeslidercommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-05.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=497c46f0ace1f6f2daccca4887281aab" alt="滑动条验证码效果展示" width="1337" height="192" data-path="helpcenter/commands/ai/images/recognizeslidercommand-05.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizeslidercommand-06.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=3dc2bbff13f733242e327d72c8319cf3" alt="滑动条验证码效果展示" width="503" height="488" data-path="helpcenter/commands/ai/images/recognizeslidercommand-06.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
