Playing with simple VBS script files and trying to make them work from within DOpus I found that VB-Script doesn't seem to provide easy access to the clipboard. DOpus already provides GetClip and SetClip methods but with SetClip it's not possible to add text strings to clipboard because the old content will be overwritten.
Simple examples where this could be useful would be "Read the n-th line of selected textfiles using a for each...next loop and add the resulting strings to clipboard" or "Add DOpus.Output strings to clipboard" to get the script output into the clipboard. At the moment I'm using a temporary new textfile to achieve this.
It would be much easier if this could be done by simply writing DOpus.ClearClip before the loop starts and DOpus.AddClip to add new strings to clipboard.
You have GetClip and SetClip, so you can implement AddClip yourself:
Dim strClip
strClip = ""
If DOpus.GetClipFormat() = "text" Then
strClip = DOpus.GetClip("text")
End If
strClip = strClip & "Banana"
DOpus.SetClip strClip
Since the way you'll want to add text will vary from script to script (e.g. some may want to add extra characters before the addition), a higher-level method to add to the clipboard probably wouldn't be that useful as you'd often end up having to do it the way I've just shown anyway.
A method to clear the clipboard would make sense, although you can set it to an empty string for almost the same effect: DOpus.SetClip("")
Thanks, what you suggested is working fine. Forget the Feature Request.