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

2015-07-28 Thread Wei Yang
Question #269664 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269664 Status: Answered => Solved Wei Yang confirmed that the question is solved: It is solved, thanks a lot. Learnt a lot from you Cameron. -- You received this question notification because you are a member

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

2015-07-28 Thread Cameron Jones
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

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

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269664 Status: Answered => Open Wei Yang is still having a problem: the first part works, but the second part there is an error message. I wonder what causes the error. A=[111,222,333] B=[123.456.789] for i i

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

2015-07-27 Thread Cameron Jones
Question #269664 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269664 Status: Open => Answered Cameron Jones proposed the following answer: Yeah that is my mistake, it should be just 'range(len(A)):' -- You received this question notification because you are a member of

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

2015-07-27 Thread Wei Yang
Question #269664 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269664 Status: Needs information => Open Wei Yang gave more information on the question: Hi Cameron, thanks for your reply. Both A and B have an equal number of elements. I apologise for the typo in B, it shou

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

2015-07-27 Thread Cameron Jones
Question #269664 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269664 Status: Open => Needs information Cameron Jones requested more information: Are A and B both lists with 3 elements? If A and B always have an equal number of elements then you could do: for i in range(0

[Sikuli-driver] [Question #269664]: Sikuli loop with python

2015-07-26 Thread Wei Yang
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 nu