Skip to main content
Participant
April 21, 2020
Question

get mouse cursor x and y location in script

  • April 21, 2020
  • 0 replies
  • 559 views

Hi,

I'm doing scripting for a small tool with a UI. I have bound it with a shortcut key. I'm using these lines to position the window and show the window,

myToolsPanel.frameLocation = [50, 150];
myToolsPanel.show();

now i need to get the cursor x and y coordinates, so that I can pass it to 'myToolsPanel.frameLocation' using a variable.

I'm new to scripting tools. I couldnt find any references on web.

need help to get cursor x and y coordinates inside the script.