← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205813]: Detect end of scroll

 

Question #205813 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205813

RaiMan proposed the following answer:
ok, understood.

Then you should do it this way:

If the table cannot be scrolled anymore, the area shold not change its
content after a scroll.

# capture a significant part of the table
tabPart = capture(some_region)

# make one scroll step

# check, wether things changed
if some_region.exists(tabPart):
     print "reached end of table"
     break # see continue
else:
     print "some more to scroll"
     continue # supposing we are in a loop

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.