Hi, I've problems accessing ClipboardAll.
This is an example code:
Code:
b=0
a=
c=
#NumpadDiv:: aa()
aa()
{
global
if (b)
{
a := ClipBoardAll
Clipboard :=
Clipboard := c
}
else {
c := ClipBoardAll
Clipboard :=
Clipboard := a
}
b := !b
}
Here, I can switch between the two clipboards. It works for text, ArchiCAD data, and image (that is, binary data).
But under
AutoCAD, I have an error message when trying to insert the modified clipboard:
Cannot insert AutoCAD drawing file as OLE object.
Furthermore, if I switch back to the other clipboard, it inserts the drawing data.
If I ^C + ^/ + ^/ + ^V (copy, change clipboards twice, paste) then it inserts the right drawing data.
That is: the
last copied clipboard data remains accessible despite of deleting/restoring, but none of the others.
Any idea of avoiding this?