Getting exact coordinates from Env.getMouseLocation()

Asked by stewazy on 2017-04-21

Hello it's me again. I have a question, how can i get x and y coordinates of mouse pointer when i do for example

location = Env.getMouseLocation()

i need to use the y coordinate to increment it and then to pass it in a click() function alongside unchanged x value.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
stewazy
Solved:
2017-04-21
Last query:
2017-04-21
Last reply:
stewazy (stewazy) said : #1

xLoc = Env.getMouseLocation().getX()
    yLoc = Env.getMouseLocation().getY()

I'm sry xD

RaiMan (raimund-hocke) said : #2

no need to be sorry:
it took only seven minutes from question send to answer send. that's ok ;-)

keep on running