Copy link to clipboard
Copied
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?
AFAIK, If we want to track pointer position in app window, we need to create a custom plugin.
Copy link to clipboard
Copied
AFAIK, If we want to track pointer position in app window, we need to create a custom plugin.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now