Copy link to clipboard
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.
Have something to add?