← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235378]: How to use Wait() or Click() with multi screens?

 

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

RaiMan posted a new comment:
currently only this:

someImage = "image.png"

screens = (Screen(i) for i in range(Screen.getNumberScreens())

start = time.time()
while time.time()-start < 20
    found = False
    for s in screens:
        if s.exists(someImage, 0):
            s.click()
            found = True
            break
    if found: break
    wait(1)

You might as well push numberScreens threads, that each wait and click
on one screen.

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