sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32651
Re: [Question #267545]: Screenshot feature
Question #267545 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267545
Status: Open => Answered
RaiMan proposed the following answer:
buttons = "buttons.png"
# buttons.png is a screenshot that contains both buttons, but as little
background as possible.
btn1 = Pattern(buttons).targetOffset(x1, y1)
btn2 = Pattern(buttons).targetOffset(x2, y2)
the (x,y) are the offset from the center of the buttons image to the
click points of the buttons and can be evaluated using the IDE's Preview
feature.
click(btn1) # will search the buttons image and click button 1
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.