Default wait time trouble

Asked by peter hasselby

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

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

click(wait(a, 60))

Revision history for this message
peter hasselby (smonxter) said :
#2

Thanks RaiMan, that solved my question.