I am trying to find a methode to send text from qcad script into the clipboard to paste it into an other app (excel). I could find not solution not with RInterface::clipobard also not with clipboardoperation. My last try was the following which did not work out. Any suggestions?
Code: Select all
var appWin = EAction.getMainWindow();
var di = this.getDocumentInterface();
var op = new RAddObjectsOperation();
appWin.handleUserMessage("1")
di.applyOperation(op); //tryout if di works
var hui = di.getClipboard()
appWin.handleUserMessage("222")