← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269664]: Sikuli loop with python

 

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

    Status: Open => Answered

Cameron Jones proposed the following answer:
Alright, so first off, you still have the type in the assignment of B, and you need to correct that.
"B=[123.456.789]" is incorrect and it should be separated by commas.

Secondly, you can just wrap a str() call around A[i] and you should be
alright. Same with B[i].

A=[111,222,333]
B=[123,456,789]
for i in range(len(A)):
    try:
        type(str(A[i]))
        type(str(B[i]))
    except FindFailed:
        type(Key.F5)

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