getCenter on a user coded region returns a clickpoint on the bottom right of the region

Asked by Mark McGuinn

I've defined a region using the Region command and when I do a highlight of the region is show corrrectly. But when I want to click on the region I use the gtCenter call but the clickpoint for the region is shown at the bottom right corner and when I try to do the click it does not activate the region.

I expect the getCenter command would return co-ordinates at the center of the region and when I click on this co-ordinate it would activate the region on the screen

My question is whether the getCenter call works with regions created with the Region call?

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
abuzer stream (abuzerstream) said :
#1

try it.

example_region = Region(0,0,200,200)
example_region.click()

it is work trust me.

Revision history for this message
Dewnis (dvd4566) said (last edit ):
#2

Can you help with this problem?

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

To post a message you must log in.