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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
You can write your own custom mouse swipe function using low-level mouse
control routines.

To illustrate the idea, here is dirty routine I used for that:

def flick_up():
        # setting begin - end
        x1, y1, x2, y2 = (640, 682, 640, 412)
        start = Location(x1, y1)
        end = Location(x2, y2)
        # moving up
        stepX = 0
        stepY = 20
        run = start
        mouseMove(start); wait(0.5)
        mouseDown(Button.LEFT); wait(0.5)
        for i in range(5):
                        run = run.right(stepX).above(stepY * i)
                        mouseMove(run)
                        wait(0.05)
        mouseUp()
        wait(0.5)

Experiment a bit with mouseMove, and you'll get whatever is possible.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to