← Back to team overview

sikuli-driver team mailing list archive

[Question #315288]: add xy to this script

 

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

This is my code i have tried everything, can't figure out syntax to add xy600x600 to 1300x900 coordinates to this line to make it faster

    if exists(Pattern("1469321512445.png").similar(0.50)) or exists(Pattern("1470143332576.png").similar(0.50)):    

for n in range(1):
    if exists(Pattern("1469321512445.png").similar(0.50)) or exists(Pattern("1470143332576.png").similar(0.50)):    
        click(Pattern("1469305690339.png").similar(0.90).targetOffset(-70,-9))
        type("v", KeyModifier.CTRL)
        type(Key.ENTER)
        type("s", KeyModifier.CTRL)
    else:
        click(Pattern("1469222076906-1.png").targetOffset(-647,497))
        click(Pattern("1469206576875.png").targetOffset(-7,0))
        wait(4.0)


Thanks so much

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