← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #235251]: Unable to find mouse pointer when using wait()

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Internally a find operation works like this:
1. a screenshot is taken ignoring the mouse pointer (which is an option of Java Robot screen capture)
2. this screenshot is taken as the base image, to search in for the given image
3. as a result a match is created containing the information, where "on the screen" the image was found
4. if not found: repeat 1 and 2 until found or we get the given timeout or standard wait time

This is the expected behavior, so to not be able to search the mouse
pointer is not a bug, it is a feature ;-)

So the request bug would be, to have features to deal with the mouse
pointer in a Sikuli script.

BTW: you could use SnagIt called from a Sikuli script, to take a shot
containing the pointer, make up a Finder with this image and look for
the pointer. You decision, wether it is worth the effort.

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