← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #249740]: TypeError ( org.python.proxies.sikuli.Region$Region$0(): 1st arg can't be coerced to java.awt.Rectangle, org.sikuli.script.Region ) error is raised

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
    reg=Region(var)

expects var ro be another Region or java.awt.Rectangle, but when you
call

myRegion(var1)
you hand over a string (image filename)

If you mean the region, the given image currently represents on the
screen:

myRegion(find(var1))

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