← Back to team overview

sikuli-driver team mailing list archive

[Question #269311]: compare directory of pictures to screen with loop

 

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

Hello,

First i wish to congratulate for this program and the help you provide.

I have a directory with 221 file *.png and i need to find similar image in a sotfware and delete :

i made this simple script but i need to capture manual each time the var "img" how to load from disk directory the file compare and go to second etc... in a loop

img="1437079537448.png"

img1="delete.png"

wait(0.5)
type(Key.HOME)
wait(0.5)

while True: # loop forever

    
    if exists(Pattern(img).similar(0.99)):
        rightClick(Pattern(img).similar(0.99))
        click(Pattern(img1).similar(0.99))
        break
    else:
        wait(0.5)
        type(Key.PAGE_DOWN)



Thank.

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