← Back to team overview

sikuli-driver team mailing list archive

[Question #300661]: how to click everytime an image is detected in the screen

 

New question #300661 on Sikuli:
https://answers.launchpad.net/sikuli/+question/300661

Hi,

I am new at Sikuli and I need some help for an operation.
I would like to click on an image everytime it is detected in the screen.
I tried:

m=findAll('Image.png')
m= SCREEN.getLastMatches()
while (m.hasNext()):
        click(m)
        m.next()

But it doesn't click anywhere :s
Does m contain a match that can be used with click?

Thanks,
Rox

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