Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > MIAMEX

MX_AGINTERPROC

Scroll Prev Top Next More

xcall MIAMEX, MX_AGINTERPROC, hwnd, agcmd, msg, status

MX_AGINTERPROC (MIAMEX 179) provides for sending AG commands between instances of A-Shell/Windows.

Parameters

hwnd  (B4)  [in]

is the target window handle (use MX_FINDWINDOW to get it)

agcmd  (Num)  [in]

is a value in the range of 1 to 99 corresponding to the AG_xxx functions.

msg  (String)  [in]

is the text string normally following the AG_xxx function (must be terminated with chr(127)!!!

status  (Signed Num)  [out]

returns a status code indicating the success of the operation:

Status

Meaning

1

OK (target received and processed msg)

0

No response from target

-1

Target received msg but rejected it as invalid

-2

Missing trailing chr(127) on message

-3

Target HWND not found