sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29731
[Bug 1403959] Re: Problem with dragDrop method in Java
Internally, dragDrop() is a wrapper for the sequence:
mouseMove(source)
mouseDown(Button1)
mouseMove(target)
mouseUp()
if dragDrop does not work, this is usually an intermediate timing
problem.
e.g. to find out, what might help, you can add waits in the above
sequence:
mouseMove(source)
mouseDown(Button1)
wait(0.5) # give GUI more time to acknowledge drag preparation
mouseMove(target)
wait(0.5) # give GUI a chance to acknowledge drop preparation
mouseUp()
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1403959
Title:
Problem with dragDrop method in Java
Status in Sikuli:
New
Bug description:
Hi guys,
I'm stopped at this point. I have to drag and drop using sikuli-java
1.1.0
My code is:
Screen sikuli = new Screen();
Pattern imgPattern = new Pattern ("sun.jpg");
sikuli.dragDrop(imgPattern,imgPattern.targetOffset(10,400));
I expect to select the pattern and move the picture to (10,400) but my
instruccion just click at (10,400) without dropping.
What am I doing wrong?
Best regards,
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1403959/+subscriptions
References