> ## 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.

# 等待图像

## 指令说明

**描述：** 等待目标图像出现或消失，再继续执行流程。

<Info>
  该指令适用于桌面应用程序或窗口场景，通过图像识别判断目标状态，常用于监控图标变化、弹窗提示等场景。
</Info>

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/wait/images/wait-image-panel.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=5528a6fa2f9acc1f405123479400ffb4" alt="等待图像指令参数面板" width="660" height="535" data-path="helpcenter/commands/wait/images/wait-image-panel.png" />

    | 参数       | 说明                           |
    | -------- | ---------------------------- |
    | **搜索范围** | 查找目标图像的范围，可选整个屏幕、窗口对象或当前激活窗口 |
    | **选择图像** | 选择已存在的图像，或捕获新图像              |
    | **等待图像** | 选择判断条件：出现或消失                 |
    | **超时时间** | 设置最长等待时间                     |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/wait/images/wait-image-02.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=a82abdf81069074604c743e0cd64336d" alt="等待图像指令参数面板 - 高级" width="50" height="39" data-path="helpcenter/commands/wait/images/wait-image-02.png" />

    | 参数       | 说明                          |
    | -------- | --------------------------- |
    | **相似度**  | 指定目标图像与原始图像的相似程度，推荐相似度为 80% |
    | **匹配模式** | 查找图像的匹配方式，彩色匹配相对灰度匹配更加精确    |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/wait/images/wait-image-flow.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=05ce574f50916a436dd3307e42a7ea8c" alt="等待图像使用示例 - 流程搭建" width="852" height="149" data-path="helpcenter/commands/wait/images/wait-image-flow.png" />

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

捕获桌面企业微信高亮图标

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/wait/images/wait-image-captured.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=636d4944c946f6be120f0a216535101a" alt="等待图像使用示例 - 已捕获图像" width="345" height="288" data-path="helpcenter/commands/wait/images/wait-image-captured.png" />

使用【等待图像】在整个屏幕中等待【图像】出现，最多等待 20 秒，将结果保存到等待图像结果

使用【点击图像】在整个屏幕中查找【图像】，并用鼠标左键单击图像

### 效果展示

当企业微信有新消息通知时图标高亮，流程检测到图像出现后自动点击进入查看消息。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/wait/images/wait-image-effect.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=bb55a37df61fd9ba6818258c65602eb6" alt="等待图像使用示例 - 效果展示" width="744" height="176" data-path="helpcenter/commands/wait/images/wait-image-effect.png" />

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