Skip to main content
Silly-V
Legend
November 22, 2017
Answered

Mouse xy position in application.

  • November 22, 2017
  • 1 reply
  • 1556 views

A quick question based on the one in Illustrator Scripting: How can I get current Mouse position via Javascript?

The script will create an object (a small circle in this case) at the mouse's current position within the document's active layer. But I can't seem to find a call in the library to retrieve the location info. I know that the data is tracked because if I open the "Window > Info" tool it shows the cursor's X and Y position in relation to the document bounds.

Is there a call anywhere in the javascript library that gives me access to these data points?

Is it possible to get mouse position with extensions?

This topic has been closed for replies.
Correct answer Ten A

AFAIK, If we want to track pointer position in app window, we need to create a custom plugin.

1 reply

Ten A
Community Expert
Ten ACommunity ExpertCorrect answer
Community Expert
November 23, 2017

AFAIK, If we want to track pointer position in app window, we need to create a custom plugin.