Added in 1.8.10
$active
Returns the full name of the currently active window.
See also $activecid, $lactivecid, $lactive, $activewid, $lactivewid. on ACTIVE.
Example
on *:ACTIVE:*:Current active window is $active last active window was $lactive