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

    Status: Open => Answered

RaiMan proposed the following answer:
--1. Sikuli scripts are written in Python language

--2. Already had a look at the docs: http://sikuli.org/docx/ ?

--3. how to choose an image to click:
this faq 1568 might help to decide for the appropriate approach

--4. 300 answer pictures
The images have to be organized in a list (array) or need some naming 
convention, so that the actions needed for an image can be programmed once as 
functions (def()'s) to be called in the workflow with a regarding image (after 
knowing, which image has to be clicked or in a loop).
faq 1437 might be helpful

an example:
finds the first image in the list

imgs = ["image1.png", "image2.png", "image3.png", "image4.png"]
found = False
for img in imgs:
    if exists(img, 0): 
        click(getLastMatch())
        found = True
        break
if not found:
    print "None of them appeared"
    exit(1)

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to