← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #669798]: A Flash player bot ...

 

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

    Status: Open => Answered

Jitendra patel proposed the following answer:
You need some way to know when to stop scrolling down. Maybe there is an
image that appears only at the end ? here is something you can try

myRegion = Region(186,362,466,579)
moneyImage = Pattern("1527751316512.png").targetOffset(0,1))
endScrollImage = ....
endScroll = False
setROI(myRegion)

while not endScroll:
    if exists(moneyImage):
        images = findAll(moneyImage)
        while images.hasNext():
            click images.next()
    if exists(endScrollImage):
        endScroll = True
    else:
        type(Key.DOWN)


I'm a newbie to sikulix and there is probably a better way to do this but it should work. i'm assuming you're using the ide for programming

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.