> ## 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/movewindowcommand-01.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=5a1328b4c17b5e8139052033c447b765" alt="移动窗口位置指令参数面板" width="648" height="482" data-path="helpcenter/commands/desktop-automation/images/movewindowcommand-01.png" />

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

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/movewindowcommand-02.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=153f232ea575c3b47ad9c6589d5d2ab5" alt="移动窗口位置使用示例 - 流程搭建" width="854" height="149" data-path="helpcenter/commands/desktop-automation/images/movewindowcommand-02.png" />

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

使用【获取窗口对象】获取标题为Excel.xlsx-WPS Office的窗口，将窗口对象保存到窗口对象 → 使用【移动窗口位置】设置窗口到指定位置。

### 效果展示

窗口已成功移动到指定坐标位置。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/At1Bhn6G7IYQARg7/helpcenter/commands/desktop-automation/images/movewindowcommand-03.png?fit=max&auto=format&n=At1Bhn6G7IYQARg7&q=85&s=28bd4b0737e3a8b5fe921009a62eb93c" alt="移动窗口位置使用示例 - 效果展示" width="838" height="196" data-path="helpcenter/commands/desktop-automation/images/movewindowcommand-03.png" />

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