xcall MIAMEX, MX_GETRC, row, col
MX_GETRC retrieves the current position of the cursor. row and col (Num) will return the current cursor row and column, respectively.