TCC > Variables & Functions > Variables:
Comments (...)
_CONSOLEPIDS returns a space-delimited list of the process IDs of all processes attached to this console.
Help URL: http://jpsoft.com/help/index.htm?_consolepids.htm