sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00733
Re: [Question #142076]: How to capture mouse cursor
Question #142076 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/142076
Status: Open => Answered
RaiMan proposed the following answer:
- the capture methods (from IDE or hotkey) need the mouse cursor to make
the rectangle - no chance to capture the cursor itself.
- using an capture(region) in a script that should contain the mouse
cursor, you find, it is not visible. Wether the screenshot that is made
to find the visual object contains the cursor at all: I do not know,
since these screenshots are no longer saved to disk and kept in memory.
- on my Mac I can change the cursor size to very big. then they seem to
use another technique to show the cursor and it gets visible on an
internal capture and is captured and must be on the screenshot, since it
influences the match (tested)
- and even, if you find a way to get an image of your cursor, it is
always a rectangle, that contains some background at the time it is
photographed. So it might be hard to match it on other backgrounds.
Conclusion: little hope to find a solution on the Sikuli script level.
May be there is a chance on the Java level with the awt robot.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.