← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #687647]: Drag and Drop

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The standard dragDrop internally works with a delay of 0.3 seconds (Settings.DelayValue)
1. before mouseDown 
2. before starting the drag (mouseMove)
3. and before doing the drop (mouseUp)

You may adjust this behaviour generally using the above setting.

Additionally you can adjust each single value for every dragDrop:
1. Settings.DelayBeforeMouseDown
2. Settings.DelayBeforeDrag
3. Settings.DelayBeforeDrop

... but usually the standard works or it is sufficient to raise
Settings.DelayValue on slower machines.

BE aware on Mac:
the target application of dragDrop must have focus before you use it.
especially in cases where you have used popups before, that steal the focus.

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