← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #160788]: Help coding a simulated mouse movement, in a drop box like event

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
try to use  mouseMove() with calculated pixel distances and
mouseDown/mouseUp as needed.

After the click() you can use Env.getMouseLocation() to get the current
location.

Might make sense to look into the docs for details:
http://sikuli.org/docx/region.html#low-level-mouse-and-keyboard-actions.

One more thing: there is a capture hotkey defined (see preferences) that can be used in such situations:
--- in the IDE put a click() and position the cursor between the brackets
--- switch to your app and click through to the point you want to capture something
--- press the hotkey, capture and go back to IDE
--- you will find the captured image in the click() now

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