MIAMEX 179: Send Inter-process AG_xxx

Reviewed July 2010

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

MX_AGINTERPROC provides for sending AG commands between instances of A-Shell/Windows.

Parameters

hwnd  (B,4)  [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 commands.

msg  (String)  [in]

is the text string normally following the AG_xxx command (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

 

History

2010 July, A-Shell 5.1.1187:  Routine added to A-Shell