Matrix

Asked by Sahara

Could you please give me an example how to handle a matrix in sikuli? I mean, i want a method that click on each element of matrix.

I.e
dimension= [[dim1,level1],[dim2,level2]]

clickDimension(dimension)
  For m=0;m<=dimension.length;m++
          Click dimension[m,0]
          Click dimensio[m,1]
   EndFor
end

How should I store the matrix for sikuli?
How should I write the loop for sikuli?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

matrix = [["0-0", "0-1", "0-2"], ["1-0", "1-1", "1-2"], ["2-0", "2-1", "2-2"] ]# 3 x 3 matrix

for line in range(3):
   for col in range(3):
      print matrix[line][col]

Can you help with this problem?

Provide an answer of your own, or ask Sahara for more information if necessary.

To post a message you must log in.