← Back to team overview

sikuli-driver team mailing list archive

[Question #286858]: Nested loops

 

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

I have a number of pictures and instructions I want my script to go through and for every round i want it to move to the next set of instruction and picture. In this example I want it to use 1.png with x, the next round 2.png with y and so on

pictures = [[1.png],[2.png],[3.png]]

instructions = [[x],[y],[z]]

I have tried with a lot of different alternatives with nested for loops like

for p in pictures:
    for i in instructions:
        paste(i[0])
        click(p[0])

But in this case it will paste instruction x,y,z  and click picture 1.png in between.

How do I get it to, after it paste x and click 1.png, paste y and click 2.png?

Thanks again for a great program and good support



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