> ## 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/recognizesliderpuzzlecommand-02.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=ebffc586de6b1ecbe118c5aa91311dcf" alt="滑动拼图验证码指令参数面板" width="639" height="689" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-02.png" />

    | 参数         | 说明                             |
    | ---------- | ------------------------------ |
    | **识别引擎**   | 请选择需要使用的验证码引擎（默认八爪鱼AI）         |
    | **图像来源**   | 请选择将要识别的验证码来源                  |
    | **验证码类型**  | 单缺口、 多缺口                       |
    | **网页对象**   | 输入一个获取到的或者通过”打开网页"创建的网页对象      |
    | **背景图**    | 请选择滑块拼图验证码的背景图（可通过捕获新元素）       |
    | **滑块图**    | 请选择滑块拼图验证码的滑块图（可通过捕获新元素）       |
    | **滑块按钮**   | 请选择需要拖动的滑块位置（可通过捕获新元素）         |
    | **自动完成验证** | 点击自动完成验证即可自动执行拖拽动作，否则仅返回滑块终点坐标 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-07.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=308d27f94432eee19d68adefc3616a0b" alt="滑动拼图验证码高级参数面板" width="642" height="358" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-07.png" />

    | 参数            | 说明                                                                     |
    | ------------- | ---------------------------------------------------------------------- |
    | **等待元素存在(s)** | 等待目标元素存在的最大超时时间，单位秒                                                    |
    | **矫正滑动距离**    | 当滑块按钮移动距离不能完成拼图时，可以通过偏移量进行微调，如每次滑动距离都差3px（像素），则输入3，滑动距离超过4px（像素），则输入-4 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-05.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=536d94ca6e0e00bf1a2c2acf588abf9e" alt="滑动拼图验证码使用示例" width="1144" height="169" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-05.png" />

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

1. 打开包含滑动拼图验证码的页面，并捕获拼图背景、缺口图和滑块按钮等所需元素。
2. 执行【滑动拼图验证码】，识别拼图缺口位置并计算滑块移动距离。
3. 勾选自动完成时，指令会按识别结果拖动滑块完成验证；示例流程可通过共享链接复现：`https://rpa.bazhuayu.com/shareableLink/665998ff4beb340409db492a`。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-01.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=35fb9b6596308f1b3ae6b5258b3680db" alt="滑动拼图验证码效果展示" width="360" height="394" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-01.png" />

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

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-04.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=81754f3c43f683b8dcebc16c9c2fd032" alt="滑动拼图验证码效果展示" width="443" height="525" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-08.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=09ba904ca4486d936efca4966b11fd77" alt="滑动拼图验证码效果展示" width="438" height="525" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-08.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/EtocdB47VU9Ofcfu/helpcenter/commands/ai/images/recognizesliderpuzzlecommand-06.png?fit=max&auto=format&n=EtocdB47VU9Ofcfu&q=85&s=5db4d429acdc5de32ad25b52e9bdb9cc" alt="滑动拼图验证码效果展示" width="1352" height="205" data-path="helpcenter/commands/ai/images/recognizesliderpuzzlecommand-06.png" />

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