Click on screen using coordinates

Asked by Shivaram Panchagnula

I have the screen coordinates using the

wait(5)
loc = Env.getMouseLocation()
print loc

For example : my coordinates are L(928,482)

I now want to know if I can store these coordinates in a variable and then use click on that variable ?

If not possible, please suggest me a best method to click on a screen point whose coordinates are known.

Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#2

click(loc)

Revision history for this message
Shivaram Panchagnula (shivaram) said :
#3

Hi RaiMan,
Thank you..
Sorry, my bad for not looking into the documentation before posting the question.