← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677297]: ClassCastException: class org.python.core.PyObjectDerived cannot be cast to class org.python.core.PyString

 

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

RaiMan posted a new comment:
I revised the capture() parameter interpretation a bit:

capture(0) # or any other single number
capture("")

will capture the Screen(0) content and return the temp filename

If you want to capture another screen's content (multi monitor setup)
use this:

capture(Screen(n))
where n is a valid screen number.

hence this works too:
capture(Screen(0))

for a complete descriptions of valid parameter settings see
https://sikulix-2014.readthedocs.io/en/latest/screen.html#capturing
(not yet finally revised)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.