Clipboard Object
The Clipboard object is used to manipulate text and graphics on the Clipboard. Use this object to copy, cut, and paste text in a script.
The object has the same methods as the Clipboard object available in Visual Basic:
- Clear
- GetData
- GetFormat
- GetText
- SetData
- SetText
For details on these methods, see http://msdn.microsoft.com/library/en-us/vb98/html/vbobjclipboard.asp?frame=true.
Example
Set cb = CreateObject("Mercury.Clipboard")
cb.Clear
cb.SetText "TEST"
MsgBox cb.GetText