Set region inside region

Asked by Miyamoto

Is it possible to set Region inside a region? Like a subregion.

Ex: I have a bot for a game and the images that I want to find is on specific region inside the game region, to optimize the match.

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
Miyamoto (musashibr) said :
#1

I run into multimonitor and one of the solution I found is to set the region based on Monitor 0, where the game will be visible but it's not an elegant solution.

Revision history for this message
Asheru (asheru93) said :
#2

Maybe I don't understand exactly the need for this but why isn't one region enough? I mean you define the region needed from the screen and then do your actions in it. You can find in the doc - http://doc.sikuli.org/region.html, that class Region has some methods like nearby(),inside(),above(),below() etc. Maybe those can answer your question

Can you help with this problem?

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

To post a message you must log in.