← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272199]: Having trouble working with simple Patterns?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
you have to decide for Python or Java ;-)

your snippet is neither correct Java nor correct Python!

pImage = Patter("1444307235161.png").targetOffset(0,-30)
click(pImage) # this clicks with the given offset to the center of the image

... now before copying you have to extend the selection somehow i guess

type("c", KeyModifier.CTRL)
data[26] = Env.getClipboard()

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