sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20842
Re: [Question #235440]: Region() example help
Question #235440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235440
Status: Open => Answered
RaiMan proposed the following answer:
--- [log] CLICK on L(614,419)@S(0)[0,0 1596x821]
means: Sikuli clicked at the point (614,419), which is on screen 0 ( S(0) ), which has a size of 1596x821 and its top left corner at (0,0), which in turn means it is the primary screen if more than one is available.
I guess, that the scroll button is at a fixed location, so this would be
the fastest:
button = reg.find("scroll_btn.png")
while not reg.exists("dept_list.png", 0): # see comment
click(button)
click(button)
wait(0.5) # adjust this as needed
comment: exists(image, 0) only searches once and comes back immediately.
exists(image) will wait 3 seconds before giving up
You might test, wether it works without the wait().
Why do you click the button twice in one round?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.