Record and play mouse click events