> ## 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/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/resizewindowcommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=004e60b5371c8361f55e997b6d0f0745" alt="调整窗口大小指令参数面板" width="656" height="432" data-path="helpcenter/commands/desktop-automation/images/resizewindowcommand-01.png" />

    | 参数         | 说明                                                                 |
    | ---------- | ------------------------------------------------------------------ |
    | **获取窗口方式** | 选择获取窗口方式，窗口对象、窗口标题或类型名、捕获窗口元素                                      |
    | **窗口对象**   | 输入一个通过"获取窗口对象"获取的窗口对象                                              |
    | **窗口标题**   | 输入窗口标题，可添加窗口类型、是否正则匹配                                              |
    | **窗口类型**   | 输入窗口类型，窗口类型可借助工具FlaUInspect（自行从GitHub上拉取）获取，桌面软件的ClassName属性就是窗口类型 |
    | **选择元素**   | 选择要操作的目标元素                                                         |
    | **宽度**     | 设置窗口宽度                                                             |
    | **高度**     | 设置窗口高度                                                             |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/resizewindowcommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=039353981904f61cd1a87e41f3a18d0c" alt="设置窗口大小使用示例 - 流程搭建" width="850" height="168" data-path="helpcenter/commands/desktop-automation/images/resizewindowcommand-02.png" />

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

使用【获取窗口对象】获取标题为Excel.xlsx-WPS Office的窗口，将窗口对象保存到窗口对象 → 使用【调整窗口大小】设置窗口大小为（宽：1400，高：820）。

### 效果展示

窗口大小已成功调整为指定尺寸。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/resizewindowcommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=4b2bd06eec5504061182784dd1d7239e" alt="设置窗口大小使用示例 - 效果展示" width="842" height="213" data-path="helpcenter/commands/desktop-automation/images/resizewindowcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/resizewindowcommand-04.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=62dc8e866be28db8415ef97d3c28c1cc" alt="设置窗口大小使用示例 - 运行结果" width="1745" height="801" data-path="helpcenter/commands/desktop-automation/images/resizewindowcommand-04.png" />

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