Reviewed and revised December 2023
tab(-10, AG_ISFOREGROUND); chr(127); Tab(-10,x) Syntax Notes
AG_ISFOREGROUND (78) tests whether the current instance of A-Shell (or the ATE client) has foreground status (i.e. is the active app).
Parameters
none
Response
0 (not in foreground) or 1 (in foreground), followed by carriage return