← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #148465]: Widening a Column

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1. dragDrop accepts both a 2-item list or a tuple as second parameter
(I looked into the code and will change the docs).

a more elegant version would yet be:
dragDrop(colWidth, colwidth.getCenter().right(70))

--2.
No this is not a bug. dragDrop() does not work as expected in all situations due to internal timing of the subsequent mouse actions.

So try your own dragDrop and control the internal timing:

myDD(from, to): # to has to be a Location object!
   mouseMove(from); wait(0.5)
   mouseDown(Button.LEFT); wait(0.5)
   mouseMove(to); wait(0.5)
   mouseUp()

usage:
myDD(colWidth, colwidth.getCenter().right(70))

Comment: some apps have some internal waiting time before they accept a
mouseover to be meant for them ;-). So experiment with the timing

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