sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50328
[Question #678317]: Need help with clicking randomly, if the Picture appears
New question #678317 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678317
Hey, i want that the Script clicks randomly if the Picture appears, i don't want that the Script clicks a exact point in the Picture, so here is the half of my Script
hopefully someone can help me with my this...
if exists("1548508520863.png"):
wait("1548508539216.png")
click("1548508551664.png")
time.sleep(6)
click(Pattern("1548508571883.png").similar(0.89))
time.sleep(5)
click("1548508632017.png")
time.sleep(5)
wait("1548508674409.png", 3)
click("1548508682212.png")
else:
wait("1548508937465.png", FOREVER)
click(Pattern("1548508954007.png").similar(0.90))
time.sleep(9)
click(Pattern("1548508984027.png").similar(0.86))
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.