xcall MIAMEX, MX_AGINTERPROC (179), hwnd, agcmd, msg, status
This function provides for sending AG commands between instances of A-Shell/Windows.
Parameters
hwnd (B4, input)
is the target window handle (use MX_FINDWINDOW to get it)
agcmd (num, input)
is a value in the range of 1-99 corresponding to the TAB(-10,AG_xxx) commands. (see http://www.microsabio.net/dist/doc/dev/tab10xfunctions.htm )
msg (string, input)
is the text string normally following the TAB(-10,AG_xxx) command (must be terminated with chr(127)!!!
status (signed numeric, output)
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 |