← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #178128]: Can I pass region to clipboard?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I guess you are talking about 
img = capture()

where img is a filename in a temp folder.

No, this is not a feature yet.

And an integrated solution on the Sikuli script level is not possible.
You have to use the Java features (which can be used in Sikuli scripts,
since it is Jython) like the clipboard manager, to get the file content
to the clipboard.

If you do not have the Java knowledge, you might try to open an external
image viewer from the sikuli script and tell him, to send it to the
clipboard.

e.g. try 
os.popen("viewer "+img) 

which should open the img in the viewer app. the rest should be possible
with some type()'s

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