sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11466
Re: [Question #201896]: Return back to?
Question #201896 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/201896
Status: Open => Answered
RaiMan proposed the following answer:
My guess:
1 while exists("Ore"):
2 rightClick("Ore")
3 click("Drop")
4 wait(1)
so lets look at it step by step:
1 here it finds the fifth Ore
2 it rightclicks on the 5th Ore (I guess Drop gets visible now)
3 it clicks on drop (and I guess Ore vanishes)
4 we wait a second
and go back to 1
and now it finds another Ore, but that is no longer there when we try to rightclick it.
conclusion:
the last Ore (5th), that was dropped, is still visible,when checked again (at 1), but it has vanished a short time later (the search costs about1/2 second )
so try a wait(1.5) at 4
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.