← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #708089]: Free scroll the screen in Sikuli

 

Question #708089 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708089

    Status: Open => Answered

abuzer stream proposed the following answer:
You can use dragDrop

dragDrop(PSMRL, PSMRL[, modifiers])
Perform a drag-and-drop operation from a starting click point to the target click point indicated by the two PSMRLs respectively.

Parameters:	
PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
modifiers – one or more key modifiers
If one of the parameters is PS, the operation might fail due to not Found.

Sideeffect: when using PS, the match of the target can be accessed using
Region.getLastMatch() afterwards. If only the first parameter is given
as PS, this match is returned by Region.getLastMatch().

If the operation does not perform as expected (usually caused by timing
problems due to delayed reactions of applications), you may adjust the
internal timing parameters Settings.DelayBeforeMouseDown,
Settings.DelayBeforeDrag and Settings.DelayBeforeDrop (default value is
0.3 seconds) for the next action (timing is reset to default after the
operation is completed). In case this might be combined with the
internal timing parameter Settings.MoveMouseDelay.

Note: If you need to implement more sophisticated mouse and keyboard
actions look at Low Level Mouse and Keyboard Actions.

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