sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35111
Re: [Question #272154]: [1.1.0] Is there a way to integrate a (background) observer with wheel()?
Question #272154 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272154
RaiMan posted a new comment:
--- That's when it's nice to have a background thread that just does step 2 repeatedly.
... exactly what observeInBackGround is doing. Forgot to mention the ObserveScanRate.
--- Can you really find out how much a wheel step moves a page?
... yes you can:
- just take a significant but smaller part of the screen
- save the match where it is now
- do a wheel with 1 step
- find the same image again
- eval the step width by comparing the two matches.
--- that the search area might be made so small ...
... yes you have to assure, that the target image can be found in the search area.
Using the class Image with 1.1.0 allows you to get the image size after having created the image in-memory, but before doing the search. This allows to adjust both: the search area size and the wheel stepping.
--- But these discussions can be interesting nonetheless
I like these discussions, because it helps me to understand, what people want to do with SikuliX and what their expectations about features are. And it helps me to decide, where to put my effort in.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.