Get current position of mouse?

Is there a way so that on a client event script, like pressing CNTRL+T, I can print to the console the x and y coordinates of my current mouse position? Using 7.9.9.

https://docs.oracle.com/javase/8/docs/api/java/awt/MouseInfo.html#getPointerInfo--

MouseInfo.getPointerInfo().getLocation(), it looks like.

1 Like