New question #219548 on Sikuli:
https://answers.launchpad.net/sikuli/+question/219548

I would like to pass a region in order to verify some data.
An example might be:
Value = f.readline().strip() #read in from data file.
def MyTest(Region, value) #my function.
if exists(Region.inside(value)) # If my value read in from my data file exists 
in the region found through OCR then test passed
Test = "passed" #write this to log file.
else
Test = Region.Text() #else log what we found instead

#end function here

MyTest(RegionScreenShot, Value)

Is this possible within the Sikuli IDE. I have tried the above code and it did 
not work. So maybe I have to assign a region to a variable first? 

I am Raimans #1 fan by the way :P 

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to