You can also use $target, in case something triggers an event meant for the @window, while the @window isn't the active window. You can also go through existing @windows using $window(<number>)