Getting cursor position after mouse click

Hi guys,

I know this has been discussed before, but none of the suggestions seem to work from me.
What is the best way of getting the new cursor position after a click? Is there a way of finding out whether the “cursorActivity” event was caused by mouse click or getting the new cursor position from “mousedown” event?

Thanks!!
Lukas

The posFromCoords method might be useful, and maybe also the origin field in "beforeSelectionChange" events.