I've just posted details of a utility here which you can use to get the current cursor position.