复制选定文本
<h1>功能</h1>
<p>使用剪切板功能获取选定文本并复制选定的文本,需配合【设置为剪切板】函数一起使用。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>超时(毫秒)</td>
<td>【整型】指定最长的等待时间(以毫秒为单位),默认值为30000毫秒(30秒)</td>
<td>3000</td>
</tr>
</tbody>
</table>
<h1>选项</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>发送窗口消息</td>
<td>【布尔型】如果选中该复选框,则通过向目标应用程序发送一条特定消息的方式执行操作。这种输入方式速度更快,且是在后台工作。默认情况下,该复选框是未选中状态。</td>
<td>否</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>结果</td>
<td>【字符串】从剪切板检索到的数据</td>
<td>Result(传入返回参数)</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.该函数需与【设置为剪切板】函数搭配使用。</p>
<h1>相关函数</h1>
<p>【设置为剪切板】函数</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/10ade34e1a2ca21cdabe7683b5f17bc2" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/db39952c0e2d3c54b55da3c6ea0e6381" title="[组件[复制选定文本函数示例]_20210412.db">组件[复制选定文本函数示例]_20210412.db</a></p>