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