> ## 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/setclipboarddatacommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=9b5afde6bc0a762a2b346a503648fc44" alt="添加内容到剪切板指令参数面板" width="963" height="549" data-path="helpcenter/commands/os/images/setclipboarddatacommand-03.png" />

    | 参数         | 说明             |
    | ---------- | -------------- |
    | **添加内容类型** | 文件名/文件         |
    | **文本内容**   | 输入要放入剪切板中文的本内容 |
    | **文件路径**   | 输入要添加到剪切板的文件路径 |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/setclipboarddatacommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=74a33fbac94df082e3ff8def2f6bfb31" alt="添加内容到剪切板使用示例" width="1246" height="285" data-path="helpcenter/commands/os/images/setclipboarddatacommand-01.png" />

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

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

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

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

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/setclipboarddatacommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=6e8a6ada4faa3a41c8b60018d96cf2f7" alt="添加内容到剪切板效果展示" width="1231" height="382" data-path="helpcenter/commands/os/images/setclipboarddatacommand-02.png" />

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