> ## 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/vz87YmU8RN3LdaSE/helpcenter/commands/mouse-keyboard/images/mousemovecommand-01.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=2120a4577f57f398a55145fee16c99b8" alt="移动鼠标指令参数面板" width="648" height="486" data-path="helpcenter/commands/mouse-keyboard/images/mousemovecommand-01.png" />

    | 参数          | 说明                                                                 |
    | ----------- | ------------------------------------------------------------------ |
    | **相对于**     | 选择新鼠标位置相对于屏幕左上角、激活窗口左上角或运行过程中鼠标当前位置。支持三种模式：屏幕左上角、激活窗口左上角、运行中当前鼠标位置 |
    | **移动至X坐标为** | 输入移动至X轴坐标（按 Ctrl+Alt 自动填充鼠标位置）                                     |
    | **移动至Y坐标为** | 输入移动至Y轴坐标（按 Ctrl+Alt 自动填充鼠标位置）                                     |
    | **移动速度**    | 选择鼠标移动速度，可选：瞬间、快速、中速、慢速                                            |
  </Tab>

  <Tab title="高级">
    | 参数           | 说明                |
    | ------------ | ----------------- |
    | **执行后延迟（S）** | 指令执行完成后的等待时间，单位为秒 |
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/vz87YmU8RN3LdaSE/helpcenter/commands/mouse-keyboard/images/mousemovecommand-02.png?fit=max&auto=format&n=vz87YmU8RN3LdaSE&q=85&s=523ecc68c30c2e2b1b4c6bc18dcb692e" alt="移动鼠标使用示例 - 流程搭建" width="1278" height="449" data-path="helpcenter/commands/mouse-keyboard/images/mousemovecommand-02.png" />

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

使用【获取窗口对象】获取标题为1.txt的窗口，将窗口对象保存到窗口对象

执行【激活窗口】命令激活1.txt窗口

使用【移动鼠标】命令将鼠标移动至相对于激活窗口左上角的坐标 1499,149

使用【移动鼠标】命令将鼠标移动至相对于激活窗口左上角的坐标 69,919

使用【移动鼠标】命令将鼠标移动至相对于激活窗口左上角的坐标 1548,938

### 效果展示

鼠标依次移动到指定坐标位置，完成预设路径移动。

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