> ## 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/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getclipboardtextcommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=f3a6aaa19baee62491b6f3fc42b1a3f5" alt="获取剪切板文本指令参数面板" width="967" height="430" data-path="helpcenter/commands/os/images/getclipboardtextcommand-01.png" />

    | 参数        | 说明         |
    | --------- | ---------- |
    | **生成的变量** | 获取剪切板中文本内容 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getclipboardtextcommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=a175ea768fea63f01666ab221c188b5c" alt="获取剪切板文本使用示例 - 流程搭建" width="1246" height="285" data-path="helpcenter/commands/os/images/getclipboardtextcommand-02.png" />

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

使用【添加内容到剪切板】命令将文本“八爪鱼教程内容”添加到剪切板

使用【获取剪切板文本】获取当前剪切板的文本，并放到变量剪切板文本

使用【打印日志】打印该变量，打印结果为：八爪鱼教程内容

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getclipboardtextcommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=07e2b613b34dfd42c4be89b838ff1dc8" alt="获取剪切板文本使用示例 - 效果展示" width="1231" height="382" data-path="helpcenter/commands/os/images/getclipboardtextcommand-03.png" />

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