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