← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #199412]: How can we use the horizontal and vertical scroll in script?

 

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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
Please read the documentation on low-level keyboard and mouse commands.

http://sikuli.org/docx/region.html#low-level-mouse-and-keyboard-actions

If there is not enough information and/or clarity on key commands, search other forum topics, using request like CTRL - 
https://answers.launchpad.net/sikuli/+questions?field.search_text=ctrl&field.sort=RELEVANCY&field.sort-empty-marker=1&field.actions.search=Search&field.language=en&field.language=ru&field.language-empty-marker=1&field.status=OPEN&field.status=NEEDSINFO&field.status=ANSWERED&field.status=SOLVED&field.status-empty-marker=1

I coded srolls and swipes, writing functions in Python for that.


Here is two examples of that routines, "drag up" and flick/swipe up: 
http://pastebin.com/qqdcMRde


I never made them perfect, they are quick and dirty, there are many hardcoded things, but they worked for me and the general idea should be clear.

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