Question #272154 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/272154
Glowing Crystalline Entity posted a new comment: Yes indeed -- and even the pause-move of the above loop is, as you say, a bit risky: my current project's code still sometimes overshoots. It helps though to make the search area small, and other tricks that speed up step 2. There is one special case, though, where that wouldn't be an issue -- namely, when you're scrolling to the very end of a page. The scrolling would just stop at that point even if the wheel'ing continued for a while, until the image that indicated the end got recognized. It's a special case, albeit one that is in my current project. And when that's the case, it's nice to make the scrolling as smooth and fast as possible, but still stop shortly after it reaches the bottom (or top). That's when it's nice to have a background thread that just does step 2 repeatedly. Can you really find out how much a wheel step moves a page, for all platforms and all programs? I don't know, but I'd be kind of surprised. I see enough variation between programs on just my Win7, that there must be multiple factors that affect it. I'd think that if you take that single-threaded polling approach, you'd want to give the user some control over how often the screen shots ("polls") are taken. There's also the issue that the search area might be made so small that a single wheel step moves the target image through or out of it. It would be good to know the wheel step size for that reason as well, and provide a warning -- again, if possible. (... and btw, to emphasize something I at least implied earlier -- I mentioned the "interrupt driven" approach more to explain the wording of my original question/comment, than to suggest that it would be a high priority or significant improvement to actually do. Again, OCR is much more important. ;-) But these discussions can be interesting nonetheless.) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp