← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #200106]: selecting the next image in line

 

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

    Status: Answered => Solved

Justin May confirmed that the question is solved:
Found the answer!

x=0
percent=00.0
findcoord=hover(Pattern("00-1.png").exact())
findcoord=Env.getMouseLocation()

while x <1000:
    print
    switchApp("Adobe Illustrator.app")
    type("v")
    
while x <1000:
        findcoord=findcoord.right(72)
        click(findcoord)        
        break

    click("Edit-1.png")
    click("Cut.png")
    click("1339077451192.png")
    click("File.png")
    click("New.png")
    click("OK-1.png")
    click("Edit.png")
    click("Paste.png")
    click("OK-2.png")
    type("\r")
    click("File-1.png")
    click("SaveAs-1.png")

    while x < 1000:
    
        percent+=.1
        paste(str(percent))
        x+=1
        break

    click("Save-1.png")
    click("OK.png")

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