_YMOUSE returns the row position of the most recent left mouse click. (Note that this will only work in a Take Command tab window, or if you have enabled the console mouse in a stand-alone TCC session.)