就像资源管理器一样复制文件到剪切板.
#Include <Misc.au3>
_ClipPutFile($sFile [, $sSeparator = "|"])
| $sFile | 文件的完整路径 |
| $sSeparator | [可选参数] 分割多个文件的分隔符, 默认 = '|' |
| @error: | 1 - 不能打开剪切板 |
| 2 - 不能清空剪切板 | |
| 3 - GlobalAlloc 失败 | |
| 4 - GlobalLock 失败 | |
| 5 - 不能创建 H_DROP | |
| 6 - 不能更新剪切板 | |
| 7 - 不能关闭剪切板 | |
| 8 - GlobalUnlock 失败 |
#include <Misc.au3>
;~ 添加下列内容到剪切板.
Local $fReturn = _ClipPutFile(@ScriptFullPath & "|" & @ScriptDir & "|" & @SystemDir)
If Not $fReturn Then
MsgBox(4096,"_ClipPutFile() 调用失败","错误代码存放于 @error = " & @error)
Else
MsgBox(4096,"_ClipPutFile()","内容已经放到剪切板了:" & @CRLF & ClipGet())
EndIf
;汉化说明,反正我没有成功...系统显示无法读取源盘...以后再研究...