user input loop - how to?

I want the user to (left-) click on a few areas/points on a geometry,
and the software should read/extract the exact coordinates on the geometry then.
How could I go about this?
How can I do this in a loop “Select first point:”, “Select 2nd point:” etc. ?