← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #163463]: Set clipboard without actually pasting

 

Question #163463 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/163463

    Status: Open => Answered

RaiMan proposed the following answer:
You are using the Sikuli implementation of clipboard handling, which is based on the Java classes
- java.awt.datatransfer.Clipboard
- java.awt.Toolkit
and related interfaces, that have to be implemented.

But the Sikuli implementation seems to have a problem, since intermixing of paste() (sets the clipboard) and Env.getClipboard() (gets the clipboard), makes it to not work anymore. Your symptoms seem to be the same.
see bug 769837

Conclusion:
Since you are on Java, try to implement your own clipboard handling.
A good example: http://www.javapractices.com/topic/TopicAction.do?Id=82

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.