When flash for query option is enabled and you set mIRC to display notice in active, if mIRC isn't the active application but that the $active window is a query and you receive a notice, mIRC will flash.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel