Automatic screen capture with Sikuli

Asked by Ramona Suciu

Hi there,

I am working with Sikuli to automate testing of maps (similar to Google Maps).
I would like to ask you if there is a way to automatically take the screenshots with Sikuli (from different regions on screen), without having to manually capture them. I am not sure if this is possible or if it makes sense, but I wanted to ask you anyway :)

Thank you and have a good day,
Ramona Suciu

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Can you please describe what do you want to do exactly?

Revision history for this message
Ramona Suciu (ramona-suciu-d) said :
#2

Well, I would like to know if there is a way to take the screenshots automatically for my Sikuli script.
For example, if it's possible to enter some coordinates, and Sikuli to capture that region and further use it in my script.

Does this help?

Revision history for this message
Eugene S (shragovich) said :
#3

Yes sure.

You can capture regions into images using capture command, like that:

img = capture(some_region)

Can you help with this problem?

Provide an answer of your own, or ask Ramona Suciu for more information if necessary.

To post a message you must log in.