Question #698821 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698821

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing SikuliX 2.0.5 and dragDrop(img1, img2).

Your Python setup does not matter (we are using Jython to run the Python
scripts).

If dragDrop does not work sometimes, then it is a GUI timing problem.

dragDrop in fact is something like this:
1. hover(img1)
2. mouseDown()
3. hover(img2)
4. mouseUp()

The critical phases are between 2.and3. and between 3.and4.
If the GUI is not ready at this time to accept the mouseDown/mouseUp

So you might experiment with the following packed in a def myDragDrop(img1, 
img2):
hover(img1)
mouseDown()
wait(0.3)
hover(img2)
wait(0.3)
mouseUp()

0.3 is some personal experience of GUI reaction times.
in your case it might be less or greater.

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

_______________________________________________
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