← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #647132]: Sikuli - Python : Compare text from two different applications

 

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

Description changed to:
Hi,

I have tried the following code to verify values in two different
applications but it does not seem to work and the message log is only
printing 'Value does not match'. Just to mention I have switched on the
tesseract OCR. Could you kindly point out where am I doing it wrong?
Thanks

In my excel file column A I have list of values like:
1
2
3
4

In my Sikuli file I want to check every value in column A and if there
is match then print message accordingly:

var = sheet.col_values(3) #this part is working I have tried with print
var

var1 = Region() # this is in the other application
var2 = var1.text() # the value here is 1

i = 0
for rows in sheet.col(3):
 if var2 == var[i]:
    print 'Value match'
 else:
    print 'Value does not match'

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.