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

# 鼠标键盘

> 模拟鼠标移动点击和键盘输入，精准还原人工交互的每个细节。

**鼠标键盘**类指令让 RPA 模拟最底层的人机交互——鼠标的移动、点击、拖拽，以及键盘的输入、组合键操作。

## 指令能做什么

* **鼠标操作**：移动鼠标到指定坐标、单击、双击、右键点击、拖拽
* **键盘操作**：输入文本、按下/释放单个按键、发送组合键（如 Ctrl+C）
* **屏幕截图**：截取屏幕指定区域，用于视觉识别判断

## 典型场景

| 场景     | 说明                         |
| ------ | -------------------------- |
| 快捷键触发  | 用 Ctrl+S 保存文件、Alt+Tab 切换窗口 |
| 特殊控件操作 | 无法通过元素定位的控件，用坐标点击绕开限制      |
| 截屏识别   | 截取验证码区域传给 AI 识别            |

## 适用场景

* **模拟人工操作**：对无法用元素定位的老旧软件/游戏，用 移动鼠标 / 鼠标点击 / 键盘输入 还原人工交互。
* **图像定位点击**：界面没有稳定控件时，用 鼠标悬浮在图像上 / 点击图像 按图像特征定位。
* **滚动翻页**：用 滚动鼠标滚轮 滚动页面加载更多内容。

## 指令列表

<CardGroup cols={3}>
  <Card title="移动鼠标" icon="mouse" href="/helpcenter/helpcenter/commands/mouse-keyboard/mousemovecommand">
    将鼠标移动到指定位置
  </Card>

  <Card title="鼠标点击" icon="mouse" href="/helpcenter/helpcenter/commands/mouse-keyboard/mouseclickcommand">
    鼠标按下、弹起、单击、双击、右键点击
  </Card>

  <Card title="滚动鼠标滚轮" icon="mouse" href="/helpcenter/helpcenter/commands/mouse-keyboard/mousescrollcommand">
    控制鼠标进行滚动鼠标滚轮
  </Card>

  <Card title="键盘输入" icon="keyboard" href="/helpcenter/helpcenter/commands/mouse-keyboard/keyboardinputcommand">
    给当前激活的窗口发送文本
  </Card>

  <Card title="鼠标悬浮在图像上" icon="image" href="/helpcenter/helpcenter/commands/mouse-keyboard/hoverimagecommand">
    在指定范围内查找图像并将鼠标移动到图像上
  </Card>

  <Card title="点击图像" icon="image" href="/helpcenter/helpcenter/commands/mouse-keyboard/clickimagecommand">
    在指定范围内查找图像并点击
  </Card>
</CardGroup>

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