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

    Status: Answered => Solved

Rosie Bell confirmed that the question is solved:
Yay! Had to tweak the delay a bit and changed the mouseDown(begin, Button.LEFT) 
into two commands as below and it is now swiping and copying like an expert! I 
know this might seem trivial but it gives me a 'go to' for event handling 
across the board and helps make things more robust. Thank you so much for all 
your help and the quick and comprehensive reply.
Rosie

def swipe(begin,end):
    while True:
        while Settings.myInHandler: wait(2)
        mouseMove(begin)
        mouseDown(Button.LEFT)
        if Settings.myInHandler: mouseUp(); continue
        mouseMove(end)
        if Settings.myInHandler: mouseUp(); continue
        mouseUp()
        if Settings.myInHandler: continue
        type("c",KEY_CTRL)
        wait(0.5)
        if Settings.myInHandler: continue
        break # if we finally come here, it should have worked.

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to