Nested loops
Asked by
Sao
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]
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sao
- Solved:
- Last query:
- Last reply:
To post a message you must log in.