← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #198776]: Click multiple times on same button

 

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

Jacob Dorman proposed the following answer:
Here's one way to repeatedly click an image 1000 times.

for x in range(1,1000):
    click(*image here*)

A more efficient way may be:

find(*image here*)
for x in range(1,1000):
    click(getLastMatch())

If you'd like to read up on Python syntax, here's a good place to start.  
http://docs.python.org/tutorial/controlflow.html#for-statements

If you need any more specific help, feel free to let us know.

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