sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37683
Re: [Question #291440]: difference between my screenshot and what sikuli searches?
Question #291440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291440
RaiMan proposed the following answer:
With version 1.1.1 (currently still nightly builds, final planned for
end of April) should work in multi-monitor environments (1.1.0 has some
minor problems in special situations with multi-monitor).
- Using the mac shortcut is then forbidden practice?
If you want to name it this way: yes, currently.
The mac shortcut (a feature of the Preview app basically) seems to produce png files, that are not compatible, with what SikuliX needs. I have postpone a solution to version 2.
You might setup your own capturing tool by writing a short script with a
hotkey and run it from commandline . now you can drive your app to the
needed points, press the hotkey, capture the image, name it using the
input popup in your script and finally save it to the place you need.
Another option is, to let the SikuliX IDE open with a script file, that is intended to host the captured images.
There is a convenience feature available:
- in your image script write:
someImage =
- let the cursor at the end of this line
- use the capture hotkey, to capture the image
- it will automatically be named "someImage.png" and stored in the script container .sikuli
see the docs:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images
to learn about the options you have with a script, that contains images.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.