# MX\_MCRS
> [HTML Version](mx_mcrs.htm)
_Rewritten November 2025_
**xcall MIAMEX, MX\_MCRS, clickinfo, row, col**
MX\_MCRS (MIAMEX 125) retrieves information about the last mouse click within an INFLD call when mouse cursor reporting has been activated via [TCRT](terminology.htm.md#tcrt-in-terminology) 158. Such a mouse click will cause INFLD to return exitcode -47, after which you can use MX\_MCRS to retrieve the click type and location.
**Parameters**
_clickinfo_ ([Num](num.htm.md)) \[out\]
returns a bitmap consisting of one or more of the following:
| **Value** | **Description** |
|------|------|
| \&h01 | Left button |
| \&h02 | Right button |
| \&h08 | Double click (else single click) |
_row_ ([Num](num.htm.md)) \[out\]
returns the row number where the mouse was clicked
_col_ ([Num](num.htm.md)) \[out\]
returns the column number where the mouse was clicked
Note that MX\_MCRS only works in conjunction with INFLD (or routines that wrap it, such as SBXINP).
**Example**
\! (assuming mouse cursor reporting previously enabled)
xcall INFLD, row, col, xmax, xmin, type, entry, inxctl, parentid, opcode, exitcode
if exitcode = -47 then \! mouse cursor reporting exit
xcall MIAMEX, MX\_MCRS, clickinfo, row, col \! retrieve click details
if clickinfo and \&h08 then
? "Double";
endif
? "click at "; row; ","; col
**See Also:**
• [Mouse Cursor Reporting](mousecursorreporting1.htm.md)