← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680864]: how to find list[] and if find remove the target

 

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

    Status: Answered => Open

wu is still having a problem:
there is my code
tch = [image1,image2,image3]
 while True:
            m = findBestList(tch)

--->when find anyone target i will screenshot and need to remove the anyone this target utill i find the                                                                 three target finish and screenshot
            if  tch = []:
                break
            for image in m:                
                screenshot_im = Screen(0).capture().getFile()                                                
                shutil.move(screenshot_im, os.path.join(imageSave, 'change_'+ str(count) + '.png')) 
                remove the anyone target

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