← Back to team overview

sikuli-driver team mailing list archive

[Question #693636]: Default wait time trouble

 

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

b = Region(1423,484,195,246)

a = "a.png"

while True:

    Settings.MoveMouseDelay =0.4
    click(Location(1394,264))
    b.click(a)    #if "a" not appears witin the sikuli defalt waittime it comes with an error.

    click(Location(1396,299))
    b.click(a)

    click(Location(1400,337))
    b.click(a)


#I want to wait longer for "a", i have tried following:

setAutoWaitTime(60)  #Not working
b = Region(1423,484,195,246)

a = "a.png"

while True:

    Settings.MoveMouseDelay =0.4
    click(Location(1394,264))
    b.click(a,60) #Not working

    click(Location(1396,299))
    b.click(a,10)

    click(Location(1400,337))
    b.click(a,10)

#Can not seem to solve this. script stops after 3 seconds no matter what i try. 

#Is this the only option

b = Region(1423,484,195,246)

a = "a.png"

while True:

    Settings.MoveMouseDelay =0.4
    click(Location(1394,264))
    wait(a,60)
    b.click(a)  

    click(Location(1396,299))
    wait(a,60)
    b.click(a,10)

    click(Location(1400,337))
    wait(a,60)
    b.click(a,10)

#using version 1.1.4


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