GetCursorPos function retrieves the cursor's position, in screen coordinates. It is a simple wrapper around Win32 function
( $sx, $sy ) = GetCursorPos();
x cursor's coordinate
y cursor's coordinate