Hi,
I want to obtain the mouse position on the screen in order to use it with the screentoworld command. It seems there isn't a script command for that.

I've looked into the UI event handlers, but couldn't find exactly what I like. The onMouseButtonDown event does return the screen, but I'd have to constantly click the button for a non-stop mouse position tracking.
The onMouseMoving doesn't require any keys pressed, but the return value isn't an absolute position on screen. Instead the event will return the distance your mouse has traveled since the the last time the event has fired. -_-

I've tried to calculate the mouse position with posx = posx + _this select 1, but return value is far to inaccurate on fast mouse movements.

Does anyone have an idea or solution?