← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #706168]: i want the software to press the buttons shown on the screen, but i dont know how

 

Question #706168 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706168

    Status: Open => Answered

RaiMan proposed the following answer:
if exists("key on the screen"): 
   click()

exists returns a match-region if the image is found on screen.
click() clicks in the middle of the last found match.

Read the docs and/or look for tons of examples in the net.

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