sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15632
[Question #219548]: Passing a Region as a arguement
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.