Location coordinates seem to be the wrong way around

Asked by GZ

Hi Everyone,

For some reason Location(0,0).hover() gives me the top left corner of my screen.
I would expect it to be the bottom left.

But testing further:
COMMAND | RESULT | EXPECTED RESULT
Location(0,0).hover() --> top left --> bottom left
Location(1900,0).hover() --> top right --> bottom right
Location(1900,1080).hover() --> bottom right --> top right
Location(0,1080).hover() --> bottom left --> top left

Why are these switched around?
I'm on latest Java (both 32 and 64 bit intalled) and Sikuli 1.1.1 release version.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
GZ
Solved:
Last query:
Last reply:
Revision history for this message
GZ (g-zr) said :
#1

To be honest I don't mind which way around they are, but I want to be able to test my Region!!
At the moment I get all kind of different points when I try to hover over the coordinates of my Region that I got with selectRegion().

Please tell me a good method to test my Region corners CORRECTLY.

Revision history for this message
masuo (masuo-ohara) said :
#2
Revision history for this message
GZ (g-zr) said :
#3

OK, now can you please help me whats the best way to test my Regions?

Revision history for this message
GZ (g-zr) said :
#4

OK, I've found a way to test my regions, but this upside-down things really confused my math.

Isn't there a testRegion() command or something like that that flashes up a red area that indicates the region??
It would be VERY useful for testing regions..

Revision history for this message
GZ (g-zr) said :
#5

OK, problems sloved, thanks.

But it would be VERY useful if there was a method to quickly visually test Regions!!

Revision history for this message
GZ (g-zr) said :
#6

Aaaand I see there is a .highlight() command so all good!