Script to flash active window