sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33917
[Question #269664]: Sikuli loop with python
New question #269664 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269664
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.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.