Navigation: TCC-RT > Variables & Functions > Variables
_WINFGWINDOW
_WINFGWINDOW returns the title of the foreground window. (This may or may not be the Take Command or TCC-RT console window.)