← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #640445]: Scan for either of the 3 images during runtime

 

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

    Status: Needs information => Answered

masuo proposed the following answer:
In case of using exists("imageA.png",0), exists("imageB.png",0) and exists("imageC.png",0) individually, to detect each image is work good?
If so, #2 method work in my environment.

[codes to check detection:] 
m1 = exists("imageA.png",0)
print "m1:%s" % m1

m2 = exists("imageB.png",0) 
print "m2:%s" % m2

m3 = exists("imageC.png",0)
print "m3:%s" % m3

if m1 or m2 or m3:
    print "exists"
else:
    print "not exists"

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