Is there a way to control/increase wheel() speed?

Asked by Glowing Crystalline Entity

Is there a way to control/increase wheel() speed?

(My app won't accept a "page down" key)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

the docs should tell you ;-)

Revision history for this message
Glowing Crystalline Entity (glowingcrystallineentity) said :
#2

Well, all I've seen is this:

http://sikulix-2014.readthedocs.org/en/latest/region.html#Region.wheel

Should I take this to imply that the answer is "no"? ;-)

Revision history for this message
RaiMan (raimund-hocke) said :
#3

have you tried the step parameter?

This is the only available option (java.awt.robot::mouseWheel(int howManyNotches)).

Revision history for this message
Glowing Crystalline Entity (glowingcrystallineentity) said :
#4

The step parameter just controls how /far/ it goes, not how /fast/, no? I want it to take each step faster.... I have some long pages to scroll through, and it takes several seconds+ each time. Repeated many times, that gets very tedious (or, it adds a lot to my processing time).

I don't know AWT, but it looks like Robot has delay() and setAutoDelay() methods -- could these speed up the rate at which it generates wheel step events?

Revision history for this message
Best RaiMan (raimund-hocke) said :
#5

Sorry, I understand your request, but there is no solution from inside SikuliX/Java for that currently.

The mentioned delays are ADDING additional waiting times - so surely not what you want ;-)

Have ya look into the system setup, whether it is possible to speed up the scrolling there.

You might also try to drag the scroll bar, which might speed things up.

Revision history for this message
Glowing Crystalline Entity (glowingcrystallineentity) said :
#6

I have most of my system settings on max, but I'll look to see if I missed anything. ;-) The scrollbar would be faster, but it's also a lot more work to find in my case... so I went with the wheel instead. Your sample code from the other question did speed things up, though, so I'll go with that for now. :)

Revision history for this message
Glowing Crystalline Entity (glowingcrystallineentity) said :
#7

Thanks RaiMan, that solved my question.