Location coordinates seem to be the wrong way around

Asked by GZ on 2017-12-08

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
GZ
Solved:
2017-12-08
Last query:
2017-12-08
Last reply:
2017-12-08
GZ (george-zador) 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.

masuo (masuo-ohara) said : #2
GZ (george-zador) said : #3

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

GZ (george-zador) 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..

GZ (george-zador) said : #5

OK, problems sloved, thanks.

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

GZ (george-zador) said : #6

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