Sikuli loop with python
Asked by
Wei Yang
This is the current code (I am using try/except to handle exceptions) I am using, I would like to know if there are any way to make it LOOP with a python list to shorten the code :
try:
.
type("first number in A")
type("first number in B")
.
except FindFailed:
type(Key.F5)
For e.g.
A=[111,222,333]
B=[123.456.789]
try:
.
type("first number in A")
type("first number in B")
.
except FindFailed:
type(Key.F5)
**Once the first loop is completed, how to choose the second number from list A and B etc. Please kindly correct me if I have misunderstanding in any ways. Thank you for your time.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Cameron Jones
- Solved:
- Last query:
- Last reply:
To post a message you must log in.