clickpos

clickpos <numerical variable>,<numerical variable>

Returns the position of the last click -- the first variable is x, the second variable is y.