← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #394821]: send image as parameter to a function

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
An "image" given as png-file-name cannot be "clicked".

Only the match (region) where it is found can be clicked at the center:

def doSomthing(image):
     click(image) # or any other command to click this object on screen
     return;

doSomthing("xyz.png")

consult the docs to learn about the many options:
http://sikulix-2014.readthedocs.io/en/latest/index.html

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