sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43981
Re: [Question #658728]: How to work around an occasional image
Question #658728 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658728
Status: Open => Answered
Manfred Hampl proposed the following answer:
Maybe the following approach works:
Split the logic into two parts:
1. the main logic, as already programmed by you
wait("image1", FOREVER)
click("image1")
wait("image2", FOREVER)
click("image2")
and
2. additional logic that runs when that image1.5 shows up
For this you can let an observer run in the background.
def myHandler(e):
print "image 1.5 appeared"
onAppear("image1.5.png", myHandler)
observe(FOREVER, background = True)
(part 2 has to go before part 1)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.