Please enable JavaScript to view this site.

A-Shell Reference

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

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)  [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)  [out]

returns the row number where the mouse was clicked

col  (Num) [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: