← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #209059]: Drag And Drop not working

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I guess the click() is the problem (it is a mouseDown/mouseUp).

what about:
lRegion = find("rl21Airplane.png");
mouseMove(lRegion)
mouseDown(Button.LEFT);
wait(0.5)
mouseMove(lRegion.getCenter().above(1))
wait(0.5)
mouseMove(Env.getMouseLocation().offset(0, 100));
wait(0.5);
mouseUp();

BTW: semicolons not needed in Python (only to separate statements on
same line)

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