sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03795
Re: [Question #163684]: [Java] can not use mouseMove() --- workaround: use hover() instead
Question #163684 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/163684
Status: Answered => Open
xlzdew is still having a problem:
Thanks for quickly response.
I try using hover() instead of mouseMove(), it seems the mouse can move as expected now. But the method mouseDown(Button.LEFT) and mouseUp() still can not work, so it can not press and hold left button , then let the scroll bar move.
Following is my updated code. The code mouseDown(Button.LEFT) get an error message of "Button.LEFT can not resolved". The code mouseUp() get an error message of "The method mouseUp(int) in the type Region is not applicable for the arguments ()"
Match mTL=screen.find(element_left);
Match mTR=mTL.nearby(100).right().find(element_right);
screen.mouseDown(Button.LEFT);
screen.hover(mTR.getCenter().offset(2,10));
screen.hover(Env.getMouseLocation().offset(targetOffsetX, targetOffsetY));
screen.mouseUp();
Is my understanding for your comment correct? And can you help to resolve problems above?
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.