Added in 1.9.0
$activewid
Returns window id for the currently active window.