Sikuli 1.0.1 get current mouse coordinates

Asked by stewazy on 2017-04-19

I am trying to get my current mouse coordinates because I want it to click on those same coordinates. Is there a way to do that in sikuli 1.0.1 ?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2017-04-19
Last query:
2017-04-19
Last reply:
2017-04-19
Best RaiMan (raimund-hocke) said : #1

Env.getMouseLocation()

stewazy (stewazy) said : #2

So then I assume I can do smth like this
click(Env.getMouseLocation())

?

stewazy (stewazy) said : #3

And thanks for a swift answer dude, you rock :)

stewazy (stewazy) said : #4

Thanks RaiMan, that solved my question.