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

# 获取下拉框选项(win)

## 指令说明

**描述：** 获取窗口中下拉框的选项。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=d6c2e47e379ffccef87fcca41eacb224" alt="获取下拉框选项(win)指令参数面板" width="648" height="407" data-path="helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-01.png" />

    | 参数            | 说明                                       |
    | ------------- | ---------------------------------------- |
    | **选择元素**      | 选择元素库里现有的元素，或捕获新元素：按住Ctrl键，在窗口中点中目标元素    |
    | **获取内容**      | 可以获取当前选中项或全部下拉项                          |
    | **保存获取到的内容至** | 指定一个变量名称，该变量用于保存获取到的列表元素，或选择保存至已创建过的列表元素 |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-05.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=984fdf055f5086f7f7a14f64f6388611" alt="获取下拉框选项(win)指令参数面板" width="649" height="260" data-path="helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-05.png" />

    | 参数            | 说明            |
    | ------------- | ------------- |
    | **等待元素存在(s)** | 等待目标元素存在的超时时间 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=81fbfc4caa6326ca9856dfe4096291bf" alt="获取下拉框选项使用示例 - 流程搭建" width="978" height="156" data-path="helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-02.png" />

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

【获取窗口对象】获取名称为"设置"的窗口 → 【获取下拉框选项(win)】获取窗口中指定下拉框的全部选项内容。

### 效果展示

成功获取下拉框的所有选项内容。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=4a77a91fa55d49530e5a70ad9e83e6ef" alt="获取下拉框选项使用示例 - 效果展示" width="966" height="190" data-path="helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-04.gif?s=bf5c45208a521450432658d4dfe1e086" alt="获取下拉框选项(win)使用示例 - 运行结果" width="1067" height="891" data-path="helpcenter/commands/desktop-automation/images/getcomboboxitemscommand-04.gif" />

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