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